tests: remove hghave system-sh from test-pending.t
authorMads Kiilerich <mads@kiilerich.com>
Mon, 18 Jun 2012 03:42:28 +0200
changeset 16975 921458360270
parent 16974 01ed5bb5cd41
child 16980 132ea1736751
tests: remove hghave system-sh from test-pending.t The alternative would have been to add a unix-permissions requirement.
tests/test-pending.t
--- a/tests/test-pending.t	Fri Jun 15 00:02:27 2012 +0200
+++ b/tests/test-pending.t	Mon Jun 18 03:42:28 2012 +0200
@@ -1,5 +1,3 @@
-  $ "$TESTDIR/hghave" system-sh || exit 80
-
 Verify that pending changesets are seen by pretxn* hooks but not by other
 processes that access the destination repo while the hooks are running.
 
@@ -62,7 +60,6 @@
 external hook
 
   $ cat <<EOF > reject.sh
-  > #! /bin/sh
   > printf 'hook '; hg tip --template '{node}\\n'
   > # create the notify file so caller knows we're running
   > fpath=$d/notify
@@ -75,7 +72,6 @@
   > done
   > exit 1 # reject the changesets
   > EOF
-  $ chmod +x reject.sh
 
 create repos
 
@@ -107,7 +103,7 @@
 
   $ cat <<EOF > parent/.hg/hgrc
   > [hooks]
-  > pretxnchangegroup = $d/reject.sh
+  > pretxnchangegroup = sh $d/reject.sh
   > EOF
 
   $ dotest