From: Ian Jackson Subject: Re: [PATCH OSSTEST 2/2] standalone mode convenience frontend Date: Thu, 20 Mar 2014 16:39:09 +0000 Message-ID: <21291.6573.826214.722258@mariner.uk.xensource.com> References: <1395332482-5892-1-git-send-email-ian.campbell@citrix.com> <1395332482-5892-2-git-send-email-ian.campbell@citrix.com> <21291.6122.47679.729128@mariner.uk.xensource.com> <1395333295.3104.32.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1395333295.3104.32.camel@kazak.uk.xensource.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 Campbell Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [PATCH OSSTEST 2/2] standalone mode convenience frontend"): > On Thu, 2014-03-20 at 16:31 +0000, Ian Jackson wrote: > > > + ./sg-run-job $job 2>&1 | tee logs/$flight/$job.log > > > + rc=${PIPESTATUS[0]} > > > + if [ $rc -ne 0 ] ; then > > > + echo "FAILED rc=${rc}" >&2 > > > + fi > > > > These 4.5 lines occur twice in this file. Perhaps another subroutine > > to handle the logging ? > > Sure. Unless the subroutine call is going to muck with ${PIPSTATUS[0]} > somehow -- I need to check that. I was thinking of a subroutine you'd use like this: BLAH1=1 BLAH2=2 BLAH3=3 with-logging ./sg-run-job $job Ian.