mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
tests: add support in run-tests.py for an environment variable to stop color
I don't like the color output, so this gives me a way to easily never see it while still having pygments on my machine.
This commit is contained in:
parent
ced1b0963a
commit
484a641a36
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user