mirror of
https://github.com/google/benchmark.git
synced 2025-01-14 05:40:14 +08:00
adds a "--no-color" flag to the compare.py script (#990)
This commit is contained in:
parent
15e6dfd718
commit
39b6e703f8
@ -48,6 +48,14 @@ def create_parser():
|
||||
"of repetitions. Do note that only the display is affected. "
|
||||
"Internally, all the actual runs are still used, e.g. for U test.")
|
||||
|
||||
parser.add_argument(
|
||||
'--no-color',
|
||||
dest='color',
|
||||
default=True,
|
||||
action="store_false",
|
||||
help="Do not use colors in the terminal output"
|
||||
)
|
||||
|
||||
utest = parser.add_argument_group()
|
||||
utest.add_argument(
|
||||
'--no-utest',
|
||||
@ -239,7 +247,7 @@ def main():
|
||||
# Diff and output
|
||||
output_lines = gbench.report.generate_difference_report(
|
||||
json1, json2, args.display_aggregates_only,
|
||||
args.utest, args.utest_alpha)
|
||||
args.utest, args.utest_alpha, args.color)
|
||||
print(description)
|
||||
for ln in output_lines:
|
||||
print(ln)
|
||||
|
Loading…
Reference in New Issue
Block a user