|
47 | 47 | import mx
|
48 | 48 |
|
49 | 49 |
|
50 |
| -def hr(l): |
| 50 | +def print_line(l): |
51 | 51 | print('=' * l)
|
52 | 52 |
|
| 53 | + |
53 | 54 | def get_suite(name):
|
54 | 55 | suite_name = name.lstrip('/')
|
55 | 56 | suite = mx.suite(suite_name, fatalIfMissing=False)
|
@@ -199,7 +200,7 @@ def _bisect_benchmark(argv, bisect_id, email_to):
|
199 | 200 | help="Command to run in order to run the benchmark. Output needs to be in mx's format")
|
200 | 201 | parser.add_argument('--rerun-with-commands',
|
201 | 202 | help="Re-run the bad and good commits with this benchmark command(s) "
|
202 |
| - "(multiple commands separated by '|')") |
| 203 | + "(multiple commands separated by ';')") |
203 | 204 | parser.add_argument('--benchmark-criterion', default='BEST',
|
204 | 205 | help="Which result parameter should be used for comparisons")
|
205 | 206 | parser.add_argument('--enterprise', action='store_true', help="Whether to checkout graal-enterprise")
|
@@ -283,11 +284,11 @@ def benchmark_callback(suite, commit, bench_command=args.benchmark_command):
|
283 | 284 | current_result = next_result
|
284 | 285 | current_suite = downstream_suite
|
285 | 286 | for commit in [current_result.good_commit, current_result.bad_commit]:
|
286 |
| - hr(80) |
| 287 | + print_line(80) |
287 | 288 | print("Commit: {}".format(commit))
|
288 | 289 | checkout_and_build_suite(current_suite, commit)
|
289 |
| - for cmd in args.rerun_with_commands.split("|"): |
290 |
| - hr(40) |
| 290 | + for cmd in args.rerun_with_commands.split(";"): |
| 291 | + print_line(40) |
291 | 292 | mx.run(shlex.split(cmd.strip()), nonZeroIsFatal=False)
|
292 | 293 |
|
293 | 294 | send_email(
|
|
0 commit comments