From: Thierry Parmentelat Date: Tue, 4 Jan 2011 11:48:15 +0000 (+0100) Subject: again X-Git-Tag: tests-5.0-21~2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=44c1a8cfd3b69d82f0aec776e592cb03bf69c0b1;p=tests.git again --- diff --git a/system/LocalTestResources.sample.inria b/system/LocalTestResources.sample.inria index 09ffd33..7e596d7 100755 --- a/system/LocalTestResources.sample.inria +++ b/system/LocalTestResources.sample.inria @@ -2,8 +2,8 @@ # Thierry Parmentelat # Copyright (C) 2010 INRIA # -# this is only an example file -# the actual file is installed in your testmaster box as /root/LocalTestResources.py +# this is the file that gets installed at onelab +# in our testmaster box as /root/LocalTestResources.py # if __name__ == '__main__': diff --git a/system/LocalTestResources.sample.princeton b/system/LocalTestResources.sample.princeton old mode 100644 new mode 100755 index 2367ca3..aa623a1 --- a/system/LocalTestResources.sample.princeton +++ b/system/LocalTestResources.sample.princeton @@ -1,11 +1,15 @@ +#!/usr/bin/python +# Thierry Parmentelat +# Copyright (C) 2010 INRIA # -# $Id$ -# -# this is only an example file -# the actual file is installed in your testmaster box as /root/LocalTestResources.py -# +# this is the file that gets installed at onelab +# in our 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 class PlanetlabTestResources (TestResources): @@ -49,3 +53,6 @@ class PlanetlabTestResources (TestResources): return "plc" local_resources = PlanetlabTestResources () + +if __name__ == '__main__': + for (h,_,__) in local_resources.qemus_ip_pool(): print h