]> xenbits.xensource.com Git - people/dariof/osstest.git/commitdiff
mg-hosts mkpxedir: honour $OSSTEST_SUDO
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 19 Aug 2014 10:33:15 +0000 (11:33 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 19 Aug 2014 10:33:15 +0000 (11:33 +0100)
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
mg-hosts

index 26435488c83299372e6248adda428d0a23ebd875..c49be7911edfb4172d7a20fd35c3ec2bdcbef147 100755 (executable)
--- a/mg-hosts
+++ b/mg-hosts
@@ -104,6 +104,7 @@ sub l ($) { return split /,/, $_[0]; }
 
 sub cmd_mkpxedir () {
     die unless @ARGV>=1;
+    my $sudo = $ENV{'OSSTEST_SUDO'} // 'sudo';
     foreach my $hn (@ARGV) {
         my $ho= selecthost("host=$hn");
         my $macdir= $ho->{Ether};