D6188: test/test-revset2.t: Unset environment variable P

jerry.montfort (Jerry Montfort) phabricator at mercurial-scm.org
Wed Apr 3 03:04:32 EDT 2019


jerry.montfort created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  tests/test-revset2.t fails the test
  
  "Test repo.anyrevs with customized revset overrides" (line 1609)
  
  when the environment variable P is set. The test implicitly expects that the environment, in which it is started, does not export the variable 'P'.
  
  This patch unsets 'P' right before the test commands are run.
  
  Fixes bug #6109

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D6188

AFFECTED FILES
  tests/test-revset2.t

CHANGE DETAILS

diff --git a/tests/test-revset2.t b/tests/test-revset2.t
--- a/tests/test-revset2.t
+++ b/tests/test-revset2.t
@@ -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



To: jerry.montfort, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list