]> xenbits.xensource.com Git - people/iwj/osstest.git/commitdiff
xenuse: Configurable path to xenuse
authorIan Campbell <ian.campbell@citrix.com>
Sun, 22 Sep 2013 14:13:55 +0000 (15:13 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Sun, 22 Sep 2013 14:13:55 +0000 (15:13 +0100)
Osstest/PDU/xenuse.pm
production-config

index 0860abdf1e518dd154027a774ca505acd7c4efcf..73a542d4d9779a7ad38dd33fccb973b85d65d6b8 100644 (file)
@@ -43,8 +43,9 @@ sub new {
 sub pdu_power_state {
     my ($mo, $on) = @_;
     my $onoff= $on ? "on" : "off";
+    my $xenuse= $c{XenUsePath} || "xenuse";
 
-    system_checked("xenuse", "--$onoff", "$mo->{Host}{Name}");
+    system_checked($xenuse, "--$onoff", "$mo->{Host}{Name}");
 }
 
 1;
index 687c29d84d957f969c4f1b584b77973bb2b28127..3f98998745ec001a2e7a319d54dc6d45fffe2250 100644 (file)
@@ -74,6 +74,8 @@ TftpPxeTemplates %ipaddrhex%/pxelinux.cfg
 TftpPxeGroup osstest
 TftpDiVersion 2012-01-30-squeeze
 
+XenUsePath /usr/groups/xencore/systems/bin/xenuse
+
 # We use the IP address because Citrix can't manage reliable nameservice
 #DebianMirrorHost debian.uk.xensource.com
 DebianMirrorHost 10.80.16.196