3 from TestMapper import TestMapper
5 # using mapper to do the reallocation job
7 def config (plcs, options):
9 if options.arch == "i386":
10 target = 'testbox32.one-lab.org'
11 elif options.arch == "x86_64":
12 target = 'testbox64.one-lab.org'
14 print 'Unsupported arch %s'%options.arch
17 mapper = {'plc': [ ('*' , {'hostname':target,
19 'PLC_API_HOST':target,
20 'PLC_BOOT_HOST':target,
21 'PLC_WWW_HOST':target,
22 'name':'%s-'+options.arch } ) ],
23 'node': [ ('*' , {'host_box': target } ) ],
26 return TestMapper(plcs,options).map(mapper)