tests: use 'hghave unix-permissions' for tests that really use chmod
chmod of helper scripts is not included.
tests that exercise the x bit in the file system uses 'hghave execbit'.
--- a/tests/test-clone-failure.t Mon Nov 07 03:14:54 2011 +0100
+++ b/tests/test-clone-failure.t Mon Nov 07 03:14:55 2011 +0100
@@ -1,3 +1,5 @@
+ $ "$TESTDIR/hghave" unix-permissions || exit 80
+
No local source
$ hg clone a b
--- a/tests/test-command-template.t Mon Nov 07 03:14:54 2011 +0100
+++ b/tests/test-command-template.t Mon Nov 07 03:14:55 2011 +0100
@@ -1,3 +1,5 @@
+ $ "$TESTDIR/hghave" unix-permissions || exit 80
+
$ hg init a
$ cd a
$ echo a > a
--- a/tests/test-convert.t Mon Nov 07 03:14:54 2011 +0100
+++ b/tests/test-convert.t Mon Nov 07 03:14:55 2011 +0100
@@ -1,3 +1,4 @@
+ $ "$TESTDIR/hghave" unix-permissions || exit 80
$ cat >> $HGRCPATH <<EOF
> [extensions]
--- a/tests/test-eol.t Mon Nov 07 03:14:54 2011 +0100
+++ b/tests/test-eol.t Mon Nov 07 03:14:55 2011 +0100
@@ -1,3 +1,5 @@
+ $ "$TESTDIR/hghave" unix-permissions || exit 80
+
Test EOL extension
$ cat >> $HGRCPATH <<EOF
--- a/tests/test-journal-exists.t Mon Nov 07 03:14:54 2011 +0100
+++ b/tests/test-journal-exists.t Mon Nov 07 03:14:55 2011 +0100
@@ -1,3 +1,5 @@
+ $ "$TESTDIR/hghave" unix-permissions || exit 80
+
$ hg init
$ echo a > a
$ hg ci -Am0
--- a/tests/test-keyword.t Mon Nov 07 03:14:54 2011 +0100
+++ b/tests/test-keyword.t Mon Nov 07 03:14:55 2011 +0100
@@ -1,4 +1,4 @@
- $ "$TESTDIR/hghave" symlink || exit 80
+ $ "$TESTDIR/hghave" symlink unix-permissions || exit 80
$ cat <<EOF >> $HGRCPATH
> [extensions]
--- a/tests/test-largefiles.t Mon Nov 07 03:14:54 2011 +0100
+++ b/tests/test-largefiles.t Mon Nov 07 03:14:55 2011 +0100
@@ -1,4 +1,4 @@
- $ "$TESTDIR/hghave" symlink || exit 80
+ $ "$TESTDIR/hghave" symlink unix-permissions || exit 80
$ cat >> $HGRCPATH <<EOF
> [extensions]
--- a/tests/test-lock-badness.t Mon Nov 07 03:14:54 2011 +0100
+++ b/tests/test-lock-badness.t Mon Nov 07 03:14:55 2011 +0100
@@ -1,3 +1,5 @@
+ $ "$TESTDIR/hghave" unix-permissions || exit 80
+
$ hg init a
$ echo a > a/a
$ hg -R a ci -A -m a
--- a/tests/test-permissions.t Mon Nov 07 03:14:54 2011 +0100
+++ b/tests/test-permissions.t Mon Nov 07 03:14:55 2011 +0100
@@ -1,3 +1,5 @@
+ $ "$TESTDIR/hghave" unix-permissions || exit 80
+
$ hg init t
$ cd t
--- a/tests/test-repair-strip.t Mon Nov 07 03:14:54 2011 +0100
+++ b/tests/test-repair-strip.t Mon Nov 07 03:14:55 2011 +0100
@@ -1,3 +1,4 @@
+ $ "$TESTDIR/hghave" unix-permissions || exit 80
$ echo "[extensions]" >> $HGRCPATH
$ echo "mq=">> $HGRCPATH
--- a/tests/test-tags.t Mon Nov 07 03:14:54 2011 +0100
+++ b/tests/test-tags.t Mon Nov 07 03:14:55 2011 +0100
@@ -1,3 +1,5 @@
+ $ "$TESTDIR/hghave" unix-permissions || exit 80
+
Helper functions:
$ cacheexists() {