From 48e4d996c0df1c1858f3f58beb9df2c254cd0ce7 Mon Sep 17 00:00:00 2001 From: Carlos Goncalves Date: Tue, 5 Jul 2016 14:56:41 +0200 Subject: Fix doctor test return check utils.functest_utils.execute_command returns 0 if no error Change-Id: Iedc36b50521cf281a7b8da351cde9e1c8f9468bd Signed-off-by: Carlos Goncalves --- testcases/features/doctor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testcases/features/doctor.py b/testcases/features/doctor.py index ca362ba67..946b0adf6 100644 --- a/testcases/features/doctor.py +++ b/testcases/features/doctor.py @@ -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: -- cgit 1.2.3-korg