mirror of
https://github.com/google/benchmark.git
synced 2025-03-30 22:20:23 +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. "
|
"of repetitions. Do note that only the display is affected. "
|
||||||
"Internally, all the actual runs are still used, e.g. for U test.")
|
"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 = parser.add_argument_group()
|
||||||
utest.add_argument(
|
utest.add_argument(
|
||||||
'--no-utest',
|
'--no-utest',
|
||||||
@ -239,7 +247,7 @@ def main():
|
|||||||
# Diff and output
|
# Diff and output
|
||||||
output_lines = gbench.report.generate_difference_report(
|
output_lines = gbench.report.generate_difference_report(
|
||||||
json1, json2, args.display_aggregates_only,
|
json1, json2, args.display_aggregates_only,
|
||||||
args.utest, args.utest_alpha)
|
args.utest, args.utest_alpha, args.color)
|
||||||
print(description)
|
print(description)
|
||||||
for ln in output_lines:
|
for ln in output_lines:
|
||||||
print(ln)
|
print(ln)
|
||||||
|
Loading…
Reference in New Issue
Block a user