test-bisect: adapt for Windows
authorAdrian Buehlmann <adrian@cadifra.com>
Fri, 15 Jun 2012 01:02:44 +0200
changeset 16960 be64115b4955
parent 16959 acba1281e064
child 16961 cdbb53a640c1
test-bisect: adapt for Windows
tests/test-bisect.t
--- a/tests/test-bisect.t	Fri Jun 15 00:39:21 2012 +0200
+++ b/tests/test-bisect.t	Fri Jun 15 01:02:44 2012 +0200
@@ -1,5 +1,3 @@
-  $ "$TESTDIR/hghave" system-sh || exit 80
-
   $ hg init
 
 
@@ -461,7 +459,7 @@
   $ hg bisect --bad 0
   Testing changeset 15:e7fa0811edb0 (31 changesets remaining, ~4 tests)
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
-  $ hg bisect --command "'`pwd`/script.py' and some parameters"
+  $ hg bisect --command "python \"$TESTTMP/script.py\" and some parameters"
   changeset 15:e7fa0811edb0: good
   changeset 7:03750880c6b5: good
   changeset 3:b53bea5e2fcb: bad
@@ -494,7 +492,7 @@
   $ hg bisect --good tip --noupdate
   $ hg bisect --bad 0 --noupdate
   Testing changeset 15:e7fa0811edb0 (31 changesets remaining, ~4 tests)
-  $ hg bisect --command "'`pwd`/script.sh' and some params" --noupdate
+  $ hg bisect --command "sh \"$TESTTMP/script.sh\" and some params" --noupdate
   changeset 15:e7fa0811edb0: good
   changeset 7:03750880c6b5: good
   changeset 3:b53bea5e2fcb: bad