diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -269,7 +269,7 @@ def getparser(): parser.add_option("-c", "--cover", action="store_true", help="print a test coverage report") parser.add_option("--color", choices=["always", "auto", "never"], - default="auto", + default=os.environ.get('HGRUNTESTSCOLOR', 'auto'), help="colorisation: always|auto|never (default: auto)") parser.add_option("-d", "--debug", action="store_true", help="debug mode: write output of test scripts to console"