harness: memtest: properly fail memtest_multicore when no memtest spawned
authorSimon Gerber <simon.gerber@inf.ethz.ch>
Mon, 12 Jun 2017 12:07:02 +0000 (14:07 +0200)
committerSimon Gerber <simon.gerber@inf.ethz.ch>
Tue, 29 Aug 2017 06:36:58 +0000 (08:36 +0200)
Signed-off-by: Simon Gerber <simon.gerber@inf.ethz.ch>

tools/harness/tests/memtest.py

index c111b2f..444c1c5 100644 (file)
@@ -63,4 +63,4 @@ class MemTestMulti(TestCommon):
                 nspawned += 1
             if line.startswith("memtest passed successfully!"):
                 nseen += 1
-        return PassFailResult(nspawned == nseen)
+        return PassFailResult(nspawned > 0 and nspawned == nseen)