diff tests/test-revset2.t @ 42061:f3365065ef1d

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
author Jerry Montfort <jerry.montfort@fake-box.com>
date Fri, 05 Apr 2019 04:09:41 +0530
parents 4caf56c33009
children 99ebde4fec99
line wrap: on
line diff
--- 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