tests: unset environment variable P in test-revset2.t (issue6109)
authorJerry Montfort <jerry.montfort@fake-box.com>
Fri, 05 Apr 2019 04:09:41 +0530
changeset 42061 f3365065ef1d
parent 42060 93a1a4fef532
child 42062 8de1b5a009ee
tests: unset environment variable P in test-revset2.t (issue6109) The test tests/test-revset2.t fails the test case "Test repo.anyrevs with customized revset overrides" (line 1609) if the environment variable P is set. The test implicitly expects that the environment, in which it is started, does not export the variable 'P'. To solve this issue, unset 'P' right before the test commands are run. Differential Revision: https://phab.mercurial-scm.org/D6195
tests/test-revset2.t
--- a/tests/test-revset2.t	Thu Apr 04 19:08:37 2019 +0200
+++ b/tests/test-revset2.t	Fri Apr 05 04:09:41 2019 +0530
@@ -1627,6 +1627,7 @@
   > printprevset = $TESTTMP/printprevset.py
   > EOF
 
+  $ unset P
   $ hg --config revsetalias.P=1 printprevset
   P=[1]
   $ P=3 hg --config revsetalias.P=2 printprevset