]> xenbits.xensource.com Git - osstest.git/commitdiff
Planner: client side: Do not force OSSTEST_RESOURCE_PRIORITY
authorIan Jackson <ian.jackson@eu.citrix.com>
Mon, 7 Sep 2015 14:43:29 +0000 (15:43 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 8 Sep 2015 10:29:19 +0000 (11:29 +0100)
This makes it possible to run mg-allocate with a different priority
simply by setting OSSTEST_RESOURCE_PRIORITY in its environment.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
---
v2: New patch

mg-allocate

index 6dc7dddfb5147f802e06bc754a0f7399053c8f25..14c90883468b71d72a507cbc9b7d1886510d74b6 100755 (executable)
@@ -365,7 +365,7 @@ while (@ARGV && $ARGV[0] =~ m/^[-0-9]/) {
                              $2 eq 'm' ?    60 :
                                              1);
         } elsif (s/^\-U/-/) {
-            $ENV{OSSTEST_RESOURCE_PRIORITY}= -1000000;
+            $ENV{OSSTEST_RESOURCE_PRIORITY} //= -1000000;
         } else {
             die "bad option \`$_'";
         }