summaryrefslogtreecommitdiff
path: root/tests/run-perfbench.py
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2022-05-23 11:10:37 +1000
committerDamien George <damien@micropython.org>2022-05-23 15:45:21 +1000
commit7d3204783a3550ab8a5a848901e0e512d54a4163 (patch)
tree4e82ec6915455ec4e874a1401f522cbc5241d5fd /tests/run-perfbench.py
parenta8492253c126be9bef69110c6a6862872868dfbc (diff)
tests/run-tests.py: Handle case where mpy-cross fails to compile script.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/run-perfbench.py')
-rwxr-xr-xtests/run-perfbench.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/run-perfbench.py b/tests/run-perfbench.py
index 22ad6308f..a2e9e8079 100755
--- a/tests/run-perfbench.py
+++ b/tests/run-perfbench.py
@@ -120,7 +120,10 @@ def run_benchmarks(args, target, param_n, param_m, n_average, test_list):
# Process script through mpy-cross if needed
if isinstance(target, pyboard.Pyboard) or args.via_mpy:
- test_script_target = prepare_script_for_target(args, script_text=test_script)
+ crash, test_script_target = prepare_script_for_target(args, script_text=test_script)
+ if crash:
+ print("CRASH:", test_script_target)
+ continue
else:
test_script_target = test_script