tests: use 'hghave execbit' for tests that manipulate x bit in file system
authorMads Kiilerich <mads@kiilerich.com>
Mon, 07 Nov 2011 03:14:54 +0100
changeset 15442 db0340f4b507
parent 15441 e0348815e806
child 15443 a1914d214579
tests: use 'hghave execbit' for tests that manipulate x bit in file system
tests/test-convert-bzr.t
tests/test-convert-hg-source.t
tests/test-convert-svn-sink.t
tests/test-diff-color.t
tests/test-diff-upgrade.t
tests/test-extdiff.t
tests/test-flags.t
tests/test-git-export.t
tests/test-hgweb-diffs.t
tests/test-import-bypass.t
tests/test-issue1802.t
tests/test-log.t
tests/test-merge-types.t
tests/test-mq.t
tests/test-record.t
tests/test-revert.t
tests/test-update-issue1456.t
--- a/tests/test-convert-bzr.t	Mon Nov 07 03:14:54 2011 +0100
+++ b/tests/test-convert-bzr.t	Mon Nov 07 03:14:54 2011 +0100
@@ -1,4 +1,4 @@
-  $ "$TESTDIR/hghave" symlink || exit 80
+  $ "$TESTDIR/hghave" symlink execbit || exit 80
 
   $ . "$TESTDIR/bzr-definitions"
 
--- a/tests/test-convert-hg-source.t	Mon Nov 07 03:14:54 2011 +0100
+++ b/tests/test-convert-hg-source.t	Mon Nov 07 03:14:54 2011 +0100
@@ -1,3 +1,4 @@
+  $ "$TESTDIR/hghave" execbit || exit 80
 
   $ cat >> $HGRCPATH <<EOF
   > [extensions]
--- a/tests/test-convert-svn-sink.t	Mon Nov 07 03:14:54 2011 +0100
+++ b/tests/test-convert-svn-sink.t	Mon Nov 07 03:14:54 2011 +0100
@@ -1,4 +1,4 @@
-  $ "$TESTDIR/hghave" svn13 no-outer-repo symlink || exit 80
+  $ "$TESTDIR/hghave" svn13 no-outer-repo symlink execbit || exit 80
 
   $ fixpath()
   > {
--- a/tests/test-diff-color.t	Mon Nov 07 03:14:54 2011 +0100
+++ b/tests/test-diff-color.t	Mon Nov 07 03:14:54 2011 +0100
@@ -1,3 +1,5 @@
+  $ "$TESTDIR/hghave" execbit || exit 80
+
 Setup
 
   $ echo "[color]" >> $HGRCPATH
@@ -74,7 +76,7 @@
 
 record
 
-  $ chmod 0755 a
+  $ chmod +x a
   $ hg record --color=always -m moda a <<EOF
   > y
   > y
--- a/tests/test-diff-upgrade.t	Mon Nov 07 03:14:54 2011 +0100
+++ b/tests/test-diff-upgrade.t	Mon Nov 07 03:14:54 2011 +0100
@@ -1,3 +1,4 @@
+  $ "$TESTDIR/hghave" execbit || exit 80
 
   $ echo "[extensions]" >> $HGRCPATH
   $ echo "autodiff=$TESTDIR/autodiff.py" >> $HGRCPATH
--- a/tests/test-extdiff.t	Mon Nov 07 03:14:54 2011 +0100
+++ b/tests/test-extdiff.t	Mon Nov 07 03:14:54 2011 +0100
@@ -1,4 +1,4 @@
-  $ "$TESTDIR/hghave" symlink || exit 80
+  $ "$TESTDIR/hghave" symlink execbit || exit 80
 
   $ echo "[extensions]" >> $HGRCPATH
   $ echo "extdiff=" >> $HGRCPATH
--- a/tests/test-flags.t	Mon Nov 07 03:14:54 2011 +0100
+++ b/tests/test-flags.t	Mon Nov 07 03:14:54 2011 +0100
@@ -1,3 +1,5 @@
+  $ "$TESTDIR/hghave" execbit || exit 80
+
   $ umask 027
 
   $ hg init test1
--- a/tests/test-git-export.t	Mon Nov 07 03:14:54 2011 +0100
+++ b/tests/test-git-export.t	Mon Nov 07 03:14:54 2011 +0100
@@ -1,3 +1,5 @@
+  $ "$TESTDIR/hghave" execbit || exit 80
+
   $ hg init
   $ echo start > start
   $ hg ci -Amstart
--- a/tests/test-hgweb-diffs.t	Mon Nov 07 03:14:54 2011 +0100
+++ b/tests/test-hgweb-diffs.t	Mon Nov 07 03:14:54 2011 +0100
@@ -1,3 +1,5 @@
+  $ "$TESTDIR/hghave" execbit || exit 80
+
 setting up repo
 
   $ hg init test
@@ -10,7 +12,7 @@
 
 change permissions for git diffs
 
-  $ chmod 755 a
+  $ chmod +x a
   $ hg ci -Amb
 
 set up hgweb
--- a/tests/test-import-bypass.t	Mon Nov 07 03:14:54 2011 +0100
+++ b/tests/test-import-bypass.t	Mon Nov 07 03:14:54 2011 +0100
@@ -1,4 +1,4 @@
-  $ "$TESTDIR/hghave" symlink || exit 80
+  $ "$TESTDIR/hghave" symlink execbit || exit 80
 
   $ echo "[extensions]" >> $HGRCPATH
   $ echo "purge=" >> $HGRCPATH
--- a/tests/test-issue1802.t	Mon Nov 07 03:14:54 2011 +0100
+++ b/tests/test-issue1802.t	Mon Nov 07 03:14:54 2011 +0100
@@ -1,3 +1,5 @@
+  $ "$TESTDIR/hghave" execbit || exit 80
+
 Create extension that can disable exec checks:
 
   $ cat > noexec.py <<EOF
--- a/tests/test-log.t	Mon Nov 07 03:14:54 2011 +0100
+++ b/tests/test-log.t	Mon Nov 07 03:14:54 2011 +0100
@@ -1,3 +1,5 @@
+  $ "$TESTDIR/hghave" execbit || exit 80
+
   $ hg init a
 
   $ cd a
--- a/tests/test-merge-types.t	Mon Nov 07 03:14:54 2011 +0100
+++ b/tests/test-merge-types.t	Mon Nov 07 03:14:54 2011 +0100
@@ -1,4 +1,4 @@
-  $ "$TESTDIR/hghave" symlink || exit 80
+  $ "$TESTDIR/hghave" symlink execbit || exit 80
 
   $ hg init
 
--- a/tests/test-mq.t	Mon Nov 07 03:14:54 2011 +0100
+++ b/tests/test-mq.t	Mon Nov 07 03:14:54 2011 +0100
@@ -1,3 +1,5 @@
+  $ "$TESTDIR/hghave" execbit || exit 80
+
   $ checkundo()
   > {
   >     if [ -f .hg/store/undo ]; then
--- a/tests/test-record.t	Mon Nov 07 03:14:54 2011 +0100
+++ b/tests/test-record.t	Mon Nov 07 03:14:54 2011 +0100
@@ -1,3 +1,5 @@
+  $ "$TESTDIR/hghave" execbit || exit 80
+
 Set up a repo
 
   $ echo "[ui]" >> $HGRCPATH
--- a/tests/test-revert.t	Mon Nov 07 03:14:54 2011 +0100
+++ b/tests/test-revert.t	Mon Nov 07 03:14:54 2011 +0100
@@ -1,3 +1,5 @@
+  $ "$TESTDIR/hghave" execbit || exit 80
+
   $ hg init repo
   $ cd repo
   $ echo 123 > a
--- a/tests/test-update-issue1456.t	Mon Nov 07 03:14:54 2011 +0100
+++ b/tests/test-update-issue1456.t	Mon Nov 07 03:14:54 2011 +0100
@@ -1,3 +1,5 @@
+  $ "$TESTDIR/hghave" execbit || exit 80
+
   $ rm -rf a
   $ hg init a
   $ cd a