We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4168a6 commit 6a7aec1Copy full SHA for 6a7aec1
libcxx/utils/benchmark-historical
@@ -91,13 +91,13 @@ def main(argv):
91
92
subprocess.call(test_cmd)
93
output_file.parent.mkdir(parents=True, exist_ok=True)
94
+ mode = 'a' if args.existing == 'append' else 'w'
95
if output_file.exists() and args.existing == 'append':
96
logging.info(f'Appending to existing data for {commit}')
- mode = 'a'
97
- else:
98
- assert args.existing == 'overwrite'
+ elif output_file.exists() and args.existing == 'overwrite':
99
logging.info(f'Overwriting existing data for {commit}')
100
- mode = 'w'
+ else:
+ logging.info(f'Writing data for {commit}')
101
with open(output_file, mode) as out:
102
subprocess.check_call([(PARENT_DIR / 'consolidate-benchmarks'), build_dir], stdout=out)
103
0 commit comments