[Bug 6109] New: tests/test-revset2.t fails when environment variable P is set
mercurial-bugs at mercurial-scm.org
mercurial-bugs at mercurial-scm.org
Sat Mar 30 05:17:47 UTC 2019
https://bz.mercurial-scm.org/show_bug.cgi?id=6109
Bug ID: 6109
Summary: tests/test-revset2.t fails when environment variable P
is set
Product: Mercurial
Version: unspecified
Hardware: All
OS: Linux
Status: UNCONFIRMED
Severity: bug
Priority: normal
Component: revset
Assignee: bugzilla at mercurial-scm.org
Reporter: jerry.montfort at fake-box.com
CC: mercurial-devel at mercurial-scm.org
Created attachment 2038
--> https://bz.mercurial-scm.org/attachment.cgi?id=2038&action=edit
unset environment variable P in tests/test-revset2.t
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'.
One solution would be to unset the variable P before running the test command
(patch based on the mercurial 4.9 tarball; also attached):
--- a/tests/test-revset2.t
+++ b/tests/test-revset2.t
@@ -1627,6 +1627,7 @@ Test repo.anyrevs with customized revset overrides
> printprevset = $TESTTMP/printprevset.py
> EOF
+ $ unset P
$ hg --config revsetalias.P=1 printprevset
P=[1]
$ P=3 hg --config revsetalias.P=2 printprevset
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list