Fix doctor test return check 77/16377/1
authorCarlos Goncalves <carlos.goncalves@neclab.eu>
Tue, 5 Jul 2016 12:56:41 +0000 (14:56 +0200)
committerCarlos Goncalves <carlos.goncalves@neclab.eu>
Tue, 5 Jul 2016 12:59:36 +0000 (14:59 +0200)
utils.functest_utils.execute_command returns 0 if no error

Change-Id: Iedc36b50521cf281a7b8da351cde9e1c8f9468bd
Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
testcases/features/doctor.py

index ca362ba..946b0ad 100644 (file)
@@ -40,7 +40,7 @@ def main():
 
     stop_time = time.time()
     duration = round(stop_time - start_time, 1)
-    if ret:
+    if ret == 0:
         logger.info("doctor OK")
         test_status = 'OK'
     else: