From 57b5ee2fcf190e2dcd583d0d0c7712101194fade Mon Sep 17 00:00:00 2001
From: Paul Sokolovsky <pfalcon@users.sourceforge.net>
Date: Sun, 16 Apr 2017 17:24:15 +0300
Subject: [PATCH] tests/run-tests: Don't post-process CRASH result in any way.

If we got a CRASH result, return early, similar to SKIP. This is important
because previous refactor changed branching logic a bit, so CRASH now gets
post-processed into CRASH\n, which broke remote hardware tests.
---
 tests/run-tests | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/run-tests b/tests/run-tests
index 61726cc87..f24fc0961 100755
--- a/tests/run-tests
+++ b/tests/run-tests
@@ -145,7 +145,7 @@ def run_micropython(pyb, args, test_file, is_special=False):
     output_mupy = output_mupy.replace(b'\r\n', b'\n')
 
     # don't try to convert the output if we should skip this test
-    if output_mupy == b'SKIP\n':
+    if output_mupy in (b'SKIP\n', b'CRASH'):
         return output_mupy
 
     if is_special or test_file in special_tests:
-- 
GitLab