This is an archive of the discontinued Mercurial Phabricator instance.

test/test-revset2.t: Unset environment variable P (issue6109)
ClosedPublic

Authored by jerry.montfort on Apr 4 2019, 10:33 AM.

Details

Summary

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.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

jerry.montfort created this revision.Apr 4 2019, 10:33 AM
jerry.montfort retitled this revision from test/test-revset2.t: Unset environment variable P (issue1609) to test/test-revset2.t: Unset environment variable P (issue6109).

Note: I had a typo in the issue number: I used the line number which happens to have the exact same digits as the issue number (must be destiny). To fix the typo I used the "Edit Revision" button on this web page. If that's the wrong way, I'll resend the patch if required.
For the record: The issue number is issue6109 (and the line number 1609).

pulkit accepted this revision.Apr 4 2019, 6:30 PM
This revision was automatically updated to reflect the committed changes.