From 8879a6a3e2932116148b597926fc26d4aed0553c Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Tue, 8 Apr 2008 12:40:05 +0000 Subject: [PATCH] too fast, not saved --- system/TestMain.py | 2 +- system/TestPlc.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/system/TestMain.py b/system/TestMain.py index ba3d712..821fc32 100755 --- a/system/TestMain.py +++ b/system/TestMain.py @@ -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 diff --git a/system/TestPlc.py b/system/TestPlc.py index 6e69d81..5781ad8 100644 --- a/system/TestPlc.py +++ b/system/TestPlc.py @@ -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 -- 2.43.0