From dfa915a6af714d6d6f185c0d5a67cd45a9f7acd1 Mon Sep 17 00:00:00 2001 From: stijn Date: Mon, 21 Sep 2015 12:24:17 +0200 Subject: [PATCH] tests: Omit process output parsing in case of CalledProcessError Adding a line-end makes the determination of skip_native fail as it compares the output against b'CRASH' while it is in fact b'CRASH\n' --- tests/run-tests | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/run-tests b/tests/run-tests index 06a0e3af20..29d2120e0d 100755 --- a/tests/run-tests +++ b/tests/run-tests @@ -77,7 +77,7 @@ def run_micropython(pyb, args, test_file): else: output_mupy = subprocess.check_output(args + [test_file]) except subprocess.CalledProcessError: - output_mupy = b'CRASH' + return b'CRASH' # unescape wanted regex chars and escape unwanted ones def convert_regex_escapes(line):