mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 23:07:18 +03:00
test-dirstate: fix testcase handling in new tests
Summary: `#testcases` was translated to `for testcase in ...`, which is subtly different since the for loop does not clean up states. Insert `cd $TESTTMP` to make sure `setconfig` sets the global config, instead of the repo one. Reviewed By: singhsrb Differential Revision: D16363261 fbshipit-source-id: ea20c758e9131268f9329b98759e7423d9f1aa87
This commit is contained in:
parent
c137206645
commit
2ec82860a2
@ -10,6 +10,8 @@ from testutil.dott import feature, sh, testtmp # noqa: F401
|
||||
|
||||
for testcase in ["v0", "v1", "v2"]:
|
||||
|
||||
sh % "cd $TESTTMP"
|
||||
|
||||
if feature.check(["v0"]):
|
||||
sh % "setconfig 'format.dirstate=0'"
|
||||
|
||||
|
@ -12,6 +12,8 @@ feature.require(["symlink"])
|
||||
|
||||
for testcase in ["v0", "v1", "v2"]:
|
||||
|
||||
sh % "cd $TESTTMP"
|
||||
|
||||
if feature.check(["v0"]):
|
||||
sh % "setconfig 'format.dirstate=0'"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user