From 0bc0b500a439465d65163caa8dafb8ebef32fc10 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Mon, 31 Mar 2008 09:00:32 +0000 Subject: [PATCH] 2 test boxess for 2 archs --- ...onfig_testbox2.py => config_onelab_testbox32.py} | 4 ++-- system/config_onelab_testbox64.py | 13 +++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) rename system/{config_testbox2.py => config_onelab_testbox32.py} (62%) create mode 100644 system/config_onelab_testbox64.py diff --git a/system/config_testbox2.py b/system/config_onelab_testbox32.py similarity index 62% rename from system/config_testbox2.py rename to system/config_onelab_testbox32.py index 749e9e0..5a657a3 100644 --- a/system/config_testbox2.py +++ b/system/config_onelab_testbox32.py @@ -5,9 +5,9 @@ from TestMapper import TestMapper def config (plcs, options): - mapper = {'plc': [ ('*' , {'hostname':'testbox2.inria.fr', + mapper = {'plc': [ ('*' , {'hostname':'testbox32.one-lab.org', 'name':'%s2' } ) ], - 'node': [ ('*' , {'host_box':'testbox2.inria.fr'} ) ], + 'node': [ ('*' , {'host_box':'testbox32.one-lab.org'} ) ], } return TestMapper(plcs,mapper,options).map() diff --git a/system/config_onelab_testbox64.py b/system/config_onelab_testbox64.py new file mode 100644 index 0000000..1d476b3 --- /dev/null +++ b/system/config_onelab_testbox64.py @@ -0,0 +1,13 @@ +# +from TestMapper import TestMapper + +# using mapper to do the reallocation job + +def config (plcs, options): + + mapper = {'plc': [ ('*' , {'hostname':'testbox64.one-lab.org', + 'name':'%s2' } ) ], + 'node': [ ('*' , {'host_box':'testbox64.one-lab.org'} ) ], + } + + return TestMapper(plcs,mapper,options).map() -- 2.47.0