From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [OSSTEST PATCH 07/29] Planner: client side: Do not force OSSTEST_RESOURCE_PRIORITY Date: Tue, 8 Sep 2015 10:45:28 +0100 Message-ID: <1441705528.24450.36.camel@citrix.com> References: <1441642107-21826-1-git-send-email-ian.jackson@eu.citrix.com> <1441642107-21826-8-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZZFT7-00014z-Jg for xen-devel@lists.xenproject.org; Tue, 08 Sep 2015 09:45:37 +0000 In-Reply-To: <1441642107-21826-8-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson , xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On Mon, 2015-09-07 at 17:08 +0100, Ian Jackson wrote: > 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 Acked-by: Ian Campbell > --- > v2: New patch > --- > mg-allocate | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mg-allocate b/mg-allocate > index 6dc7ddd..14c9088 100755 > --- a/mg-allocate > +++ b/mg-allocate > @@ -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 \`$_'"; > }