minor fix
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 21 Jun 2012 08:38:46 +0000 (10:38 +0200)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 21 Jun 2012 08:38:46 +0000 (10:38 +0200)
system/TestMain.py
system/TestPlc.py

index ae69fd8..c72aa99 100755 (executable)
@@ -291,6 +291,7 @@ steps refer to a method in TestPlc or to a step_* module
 
         # rewrite '-' into '_' in step names
         self.options.steps = [ step.replace('-','_') for step in self.options.steps ]
+        self.options.exclude = [ step.replace('-','_') for step in self.options.exclude ]
 
         # exclude
         selected=[]
index ac42204..1ed5128 100644 (file)
@@ -1155,6 +1155,9 @@ class TestPlc:
 
     def check_tcp (self):
         "check TCP connectivity between 2 slices (or in loopback if only one is defined)"
+        if 'tcp_test' not in self.plc_spec: 
+            utils.header ("check_tcp: no config found")
+            return True
         specs = self.plc_spec['tcp_test']
         overall=True
         for spec in specs: