From: Thierry Parmentelat Date: Thu, 21 Jun 2012 08:38:46 +0000 (+0200) Subject: minor fix X-Git-Tag: tests-5.1-7~14 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=f3c23ed307e48fa09c3fbf30c1ad03f2a397ff00;p=tests.git minor fix --- diff --git a/system/TestMain.py b/system/TestMain.py index ae69fd8..c72aa99 100755 --- a/system/TestMain.py +++ b/system/TestMain.py @@ -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=[] diff --git a/system/TestPlc.py b/system/TestPlc.py index ac42204..1ed5128 100644 --- a/system/TestPlc.py +++ b/system/TestPlc.py @@ -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: