From: Ian Campbell Subject: Re: [PATCH OSSTEST] cri-args-hostlists: Allow environment to control OSSTEST_CONFIG Date: Fri, 21 Mar 2014 11:25:08 +0000 Message-ID: <1395401108.27358.47.camel@kazak.uk.xensource.com> References: <1390408763-16035-1-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1390408763-16035-1-git-send-email-ian.campbell@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@eu.citrix.com Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, 2014-01-22 at 16:39 +0000, Ian Campbell wrote: > Signed-off-by: Ian Campbell Actually, it turns out that this is still kind of annoying since I need to explicitly say OSSTEST_CONFIG=~/.xen-osstest/config, which is different to all the other scripts (at least the ones I've used) Would it be safe to change this default (or better yet, libraryize it)? Something would need to set OSSTEST_CONFIG=production-config for the cronjobs, not sure where best to do it though (in crontab?) > --- > cri-args-hostlists | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/cri-args-hostlists b/cri-args-hostlists > index 9f34e4a..4f7ddf2 100644 > --- a/cri-args-hostlists > +++ b/cri-args-hostlists > @@ -17,7 +17,7 @@ > # along with this program. If not, see . > > > -export OSSTEST_CONFIG=production-config > +export OSSTEST_CONFIG=${OSSTEST_CONFIG:-production-config} > > check_stop_core () { > if [ "x$OSSTEST_IGNORE_STOP" = xy ]; then return; fi