harness: xeon_phi_boot test: make sure that we see xeon_phi.(\d+).ready `nphi` times...
authorSimon Gerber <simon.gerber@inf.ethz.ch>
Wed, 19 Oct 2016 15:48:58 +0000 (17:48 +0200)
committerSimon Gerber <simon.gerber@inf.ethz.ch>
Wed, 19 Oct 2016 15:48:58 +0000 (17:48 +0200)
Signed-off-by: Simon Gerber <simon.gerber@inf.ethz.ch>

tools/harness/tests/xeonphi.py

index ccc9053..bf1fd16 100644 (file)
@@ -129,9 +129,10 @@ class XeonPhi_Boot_Test(TestCommon):
         # the test passed iff the last line is the finish string
         lastline = ''
         passed = False;
+        phi_up_count = 0
         for line in rawiter:
             m = re.search("Xeon Phi operational: xeon_phi." + str(self.nphi - 1) + ".ready", line)
-            if m :
-                passed = True
-               
-        return PassFailResult(passed)
+            if m:
+                phi_count_up = phi_count_up + 1
+
+        return PassFailResult(phi_count_up == self.nphi)