changeset 15443:a1914d214579

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'.
author Mads Kiilerich <mads@kiilerich.com>
date Mon, 07 Nov 2011 03:14:55 +0100
parents db0340f4b507
children e1f05d7a8c7b
files tests/test-clone-failure.t tests/test-command-template.t tests/test-convert.t tests/test-eol.t tests/test-journal-exists.t tests/test-keyword.t tests/test-largefiles.t tests/test-lock-badness.t tests/test-permissions.t tests/test-repair-strip.t tests/test-tags.t
diffstat 11 files changed, 18 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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() {