fix: successful run was wrongly reporting error - fix: trackers consistency
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Sun, 7 Feb 2010 12:24:54 +0000 (12:24 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Sun, 7 Feb 2010 12:24:54 +0000 (12:24 +0000)
system/TestResources.py

index 3e0e320..741e3dc 100644 (file)
@@ -143,11 +143,11 @@ class TestResources:
 
     # as a plc step this should return a boolean
     def step_pre (self,plc):
-        return self.trqemu_record (plc) and self.trqemu_free(plc)
-        return self.trplc_record (plc) and self.trplc_free(plc)
+        return self.trqemu_record (plc) and self.trqemu_free(plc) \
+           and self.trplc_record (plc) and self.trplc_free(plc)
 
     def step_post (self,plc):
-        pass
+        return True
 
     def step_cleanup (self,plc):
         return self.trqemu_cleanup(plc) and self.trplc_cleanup(plc)