tests: fix test-bisect-t.py on windows

Summary:
$TESTTMP wasn't being expanded due to being in between '', since we're
already in the right directory, there is no need to use $TESTTMP.

Reviewed By: DurhamG

Differential Revision: D17687911

fbshipit-source-id: d9f7048cc95955f59e8a492335a90d48773bc6d2
This commit is contained in:
Xavier Deguillard 2019-10-01 09:55:35 -07:00 committed by Facebook Github Bot
parent 728e04deda
commit 811ea67178

View File

@ -458,12 +458,12 @@ if repo['.'].rev() < 6:
""" > "script.py"
sh % "hg bisect -r"
sh % "hg up -qr tip"
sh % "hg bisect --command 'hg debugpython -- \"$TESTTMP/script.py\" and some parameters'" == r"""
sh % "hg bisect --command 'hg debugpython -- script.py and some parameters'" == r"""
changeset 31:58c80a7c8a40: good
abort: cannot bisect (no known bad revisions)
[255]"""
sh % "hg up -qr 0"
sh % "hg bisect --command 'hg debugpython -- \"$TESTTMP/script.py\" and some parameters'" == r"""
sh % "hg bisect --command 'hg debugpython -- script.py and some parameters'" == r"""
changeset 0:b99c7b9c8e11: bad
changeset 15:e7fa0811edb0: good
changeset 7:03750880c6b5: good
@ -494,7 +494,7 @@ sh % "chmod +x script.sh"
sh % "hg bisect -r"
sh % "hg bisect --good tip --noupdate"
sh % "hg bisect --bad 0 --noupdate" == "Testing changeset 15:e7fa0811edb0 (31 changesets remaining, ~4 tests)"
sh % "hg bisect --command 'sh \"$TESTTMP/script.sh\" and some params' --noupdate" == r"""
sh % "hg bisect --command 'sh script.sh and some params' --noupdate" == r"""
changeset 15:e7fa0811edb0: good
changeset 7:03750880c6b5: good
changeset 3:b53bea5e2fcb: bad
@ -524,12 +524,12 @@ test "$rev" -ge 6
sh % "chmod +x script.sh"
sh % "hg bisect -r"
sh % "hg up -qr tip"
sh % "hg bisect --command 'sh \"$TESTTMP/script.sh\" and some params'" == r"""
sh % "hg bisect --command 'sh script.sh and some params'" == r"""
changeset 31:58c80a7c8a40: good
abort: cannot bisect (no known bad revisions)
[255]"""
sh % "hg up -qr 0"
sh % "hg bisect --command 'sh \"$TESTTMP/script.sh\" and some params'" == r"""
sh % "hg bisect --command 'sh script.sh and some params'" == r"""
changeset 0:b99c7b9c8e11: bad
changeset 15:e7fa0811edb0: good
changeset 7:03750880c6b5: good