test infrastructure has changed
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Sun, 22 Feb 2009 08:11:19 +0000 (08:11 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Sun, 22 Feb 2009 08:11:19 +0000 (08:11 +0000)
system/config_1testbox.py

index aa44e7d..3e7aef9 100644 (file)
@@ -6,21 +6,23 @@ from TestMapper import TestMapper
 
 def config (plcs, options):
 
-    if options.arch == "i386":
-        target = 'testbox32.onelab.eu'
-    elif options.arch == "x86_64":
-        target = 'testbox64.onelab.eu'
-    else:
-        print 'Unsupported arch %s'%options.arch
-        sys.exit(1)
+    plc_box='testbox-plc.onelab.eu'
+    qemu_box='testbox1.onelab.eu'
+#    if options.arch == "i386":
+#        target = 'testbox32.onelab.eu'
+#    elif options.arch == "x86_64":
+#        target = 'testbox64.onelab.eu'
+#    else:
+#        print 'Unsupported arch %s'%options.arch
+#        sys.exit(1)
 
-    mapper = {'plc': [ ('*' , {'hostname':target,
-                               'PLC_DB_HOST':target,
-                               'PLC_API_HOST':target,
-                               'PLC_BOOT_HOST':target,
-                               'PLC_WWW_HOST':target,
+    mapper = {'plc': [ ('*' , {'hostname':plc_box,
+                               'PLC_DB_HOST':plc_box,
+                               'PLC_API_HOST':plc_box,
+                               'PLC_BOOT_HOST':plc_box,
+                               'PLC_WWW_HOST':plc_box,
                                'name':'%s-'+options.arch } ) ],
-              'node': [ ('*' , {'host_box': target } ) ],
+              'node': [ ('*' , {'host_box': qemu_box } ) ],
               }
     
     return TestMapper(plcs,options).map(mapper)