git://git.onelab.eu
/
tests.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
put gotan as lxc test box and remove deathvegas
[tests.git]
/
system
/
TestMapper.py
diff --git
a/system/TestMapper.py
b/system/TestMapper.py
index
faaeb00
..
7d0547f
100644
(file)
--- a/
system/TestMapper.py
+++ b/
system/TestMapper.py
@@
-1,11
+1,12
@@
#
#
-# Thierry Parmentelat - INRIA Sophia Antipolis
+# Thierry Parmentelat <thierry.parmentelat@inria.fr>
+# Copyright (C) 2010 INRIA
+#
#
# mapper class
#
# this works on a spec as defined in a config file
#
# 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
#
import utils
@@
-56,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
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:
if v.find('%s')>=0:
v=v%obj[k]
if self.options.verbose: