Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/performance/benchmark')
-rwxr-xr-xtests/performance/benchmark21
1 files changed, 16 insertions, 5 deletions
diff --git a/tests/performance/benchmark b/tests/performance/benchmark
index 343af3be7d1..a58c339e9f8 100755
--- a/tests/performance/benchmark
+++ b/tests/performance/benchmark
@@ -141,6 +141,8 @@ def run_entry(env: api.TestEnvironment,
if not entry.output:
raise Exception("Test produced no output")
entry.status = 'done'
+ except KeyboardInterrupt as e:
+ raise e
except Exception as e:
entry.status = 'failed'
entry.error_msg = str(e)
@@ -236,17 +238,26 @@ def cmd_run(env: api.TestEnvironment, argv: List, update_only: bool):
configs = env.get_configs(args.config)
for config in configs:
updated = False
+ cancel = False
print_header(config)
for row in config.queue.rows(use_revision_columns(config)):
if match_entry(row[0], args):
for entry in row:
- if run_entry(env, config, row, entry, update_only):
- updated = True
- # Write queue every time in case running gets interrupted,
- # so it can be resumed.
- config.queue.write()
+ try:
+ if run_entry(env, config, row, entry, update_only):
+ updated = True
+ # Write queue every time in case running gets interrupted,
+ # so it can be resumed.
+ config.queue.write()
+ except KeyboardInterrupt as e:
+ cancel = True
+ break
+
print_row(config, row)
+ if cancel:
+ break
+
if updated:
# Generate graph if test were run.
json_filepath = config.base_dir / "results.json"