too fast, not saved
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Tue, 8 Apr 2008 12:40:05 +0000 (12:40 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Tue, 8 Apr 2008 12:40:05 +0000 (12:40 +0000)
system/TestMain.py
system/TestPlc.py

index ba3d712..821fc32 100755 (executable)
@@ -191,7 +191,7 @@ steps refer to a method in TestPlc or to a step_* module
         testplc_method_dict = __import__("TestPlc").__dict__['TestPlc'].__dict__
         all_step_infos=[]
         for step in self.options.steps:
-            if step == SEP:
+            if not TestPlc.valid_step(step):
                 continue
             force=False
             # is it a forcedstep
index 6e69d81..5781ad8 100644 (file)
@@ -82,6 +82,9 @@ class TestPlc:
     @staticmethod
     def printable_steps (list):
         return " ".join(list).replace(" "+SEP+" ","\n")
+    @staticmethod
+    def valid_step (step):
+        return step != SEP
 
     def __init__ (self,plc_spec,options):
        self.plc_spec=plc_spec