catching the failure right in the test method
authorAnil-Kumar Vengalil <Anil-Kumar.Vengalil@sophia.inria.fr>
Mon, 8 Feb 2010 14:16:03 +0000 (14:16 +0000)
committerAnil-Kumar Vengalil <Anil-Kumar.Vengalil@sophia.inria.fr>
Mon, 8 Feb 2010 14:16:03 +0000 (14:16 +0000)
system/TestPlc.py

index 487884f..3fbcb09 100644 (file)
@@ -1102,8 +1102,7 @@ class TestPlc:
 
     def stop_sfa(self):
         "service sfa stop"
-        self.run_in_guest('service sfa stop')
-        return True
+        return self.run_in_guest('service sfa stop')==0
 
     def populate (self):
         "creates random entries in the PLCAPI"