when run without an argument, displays the qemu pool hostnames
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Tue, 4 Jan 2011 11:45:04 +0000 (12:45 +0100)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Tue, 4 Jan 2011 11:45:04 +0000 (12:45 +0100)
system/LocalTestResources.sample.inria [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 5357851..09ffd33
@@ -1,11 +1,14 @@
+#!/usr/bin/python
 # Thierry Parmentelat <thierry.parmentelat@inria.fr>
 # Copyright (C) 2010 INRIA 
 #
-# 
 # this is only an example file
 # the actual file is installed in your testmaster box as /root/LocalTestResources.py
 # 
-# 
+
+if __name__ == '__main__':
+   import sys, os.path
+   sys.path.append(os.path.expanduser("~/git-tests/system"))
 
 from TestResources import TestResources
 
@@ -35,11 +38,12 @@ class OnelabTestResources (TestResources):
         return [
             ('qemu64-1.pl.sophia.inria.fr', None, None),
             ('qemu64-2.pl.sophia.inria.fr', None, None),
-#            ('qemu64-3.pl.sophia.inria.fr', None, None),
+            ('qemu64-3.pl.sophia.inria.fr', None, None),
 #            ('qemu32-1.pl.sophia.inria.fr', None, None),
             ('qemu32-2.pl.sophia.inria.fr', None, None),
             ('qemu32-3.pl.sophia.inria.fr', None, None),
-#            ('qemu32-4.pl.sophia.inria.fr', None, None),
+            ('qemu32-4.pl.sophia.inria.fr', None, None),
+#            ('qemu32-5.pl.sophia.inria.fr', None, None),
             ]
 
     def max_qemus (self):
@@ -58,3 +62,6 @@ class OnelabTestResources (TestResources):
         return None
 
 local_resources = OnelabTestResources ()
+
+if __name__ == '__main__':
+   for (h,_,__) in local_resources.qemus_ip_pool(): print h