diff tests/test-import-git.t @ 16898:bb91c602d4ad

tests: change odd uses of 'if hghave' to #if
author Mads Kiilerich <mads@kiilerich.com>
date Sun, 10 Jun 2012 13:01:40 +0200
parents ed6a74312176
children ad229181ddbe
line wrap: on
line diff
--- a/tests/test-import-git.t	Sun Jun 10 03:05:59 2012 +0200
+++ b/tests/test-import-git.t	Sun Jun 10 13:01:40 2012 +0200
@@ -65,12 +65,13 @@
   $ hg tip -q
   3:37bacb7ca14d
 
-  $ if "$TESTDIR/hghave" -q execbit; then
-  >     test -f copy -a ! -x copy || echo bad
-  >     test -x copyx || echo bad
-  > else
-  >     test -f copy || echo bad
-  > fi
+#if execbit
+  $ test -f copy
+  $ test ! -x copy
+  $ test -x copyx
+#else
+  $ test -f copy
+#endif
 
   $ cat copy
   a