X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=system%2FTestMapper.py;h=7d0547f3e40c72891049ca2487d284eeecca803d;hb=40ab0cf39e29752c4abf2217bbc8fc382e438d11;hp=c0358a54da7627ed47a93d2a2db1b252bb04278c;hpb=acc29368268d995c2965a917409dba89d2373397;p=tests.git diff --git a/system/TestMapper.py b/system/TestMapper.py index c0358a5..7d0547f 100644 --- a/system/TestMapper.py +++ b/system/TestMapper.py @@ -6,8 +6,7 @@ # mapper class # # this works on a spec as defined in a config file -# and allows to remap various fields, typically to another testbox -# see an example in config_onelab_testbox32.py +# and allows to remap various fields on the local substrate # import utils @@ -58,6 +57,9 @@ class TestMapper: utils.header ("WARNING : inserting key %s for path %s on %s %s"%( step,path,type,name)) # apply formatting if '%s' found in the value + if v is None: + if self.options.verbose: print "TestMapper WARNING - None value - ignored, key=",k + continue if v.find('%s')>=0: v=v%obj[k] if self.options.verbose: