This allows host allocation to be skipped even though the rest of the
job is being run.

Signed-off-by: Ian Jackson <ian.jack...@eu.citrix.com>
---
 ts-hosts-allocate-Executive |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/ts-hosts-allocate-Executive b/ts-hosts-allocate-Executive
index 0b83365..9417226 100755
--- a/ts-hosts-allocate-Executive
+++ b/ts-hosts-allocate-Executive
@@ -50,6 +50,11 @@ while (@ARGV and $ARGV[0] =~ m/^-/) {
     }
 }
 
+if ($ENV{'OSSTEST_NOALLOCATE'}) {
+    logm("OSSTEST_NOALLOCATE set, doing nothing.");
+    exit 0;
+}
+
 # initialised by setup:
 our $taskid;
 our %magictaskid;
-- 
1.7.10.4


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

Reply via email to