[PATCH] run-tests: make sure GREP_OPTIONS isn't set

Brodie Rao dackze at gmail.com
Mon Mar 22 00:38:58 CDT 2010


# HG changeset patch
# User Brodie Rao <brodie at bitheap.org>
# Date 1269236172 14400
# Node ID 92ff2d0b751a2469112d9b572a72e85845f27137
# Parent  16b9aa398c28e06028526287cb63979aaacd9313
run-tests: make sure GREP_OPTIONS isn't set

This can interfere with test output, especially for options like --color.

diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -842,6 +842,7 @@ def main():
     os.environ["EMAIL"] = "Foo Bar <foo.bar at example.com>"
     os.environ['CDPATH'] = ''
     os.environ['COLUMNS'] = '80'
+    os.environ['GREP_OPTIONS'] = ''
     os.environ['http_proxy'] = ''
 
     global TESTDIR, HGTMP, INST, BINDIR, PYTHONDIR, COVERAGE_FILE


More information about the Mercurial-devel mailing list