From: Ian Jackson Subject: Re: [PATCH OSSTEST 2/2] standalone mode convenience frontend Date: Thu, 20 Mar 2014 16:31:38 +0000 Message-ID: <21291.6122.47679.729128@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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1395332482-5892-2-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 Campbell Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("[PATCH OSSTEST 2/2] standalone mode convenience frontend"): > I can never remember all the various env vars which I can/should set so this > tool provides a command line veneer over the basics. > > It also does some sanity checks for things which keep tripping me up > (inability to read apache logs, lack of ssh-agent) which fail in more or less > obscure ways. This seems useful. I have only a couple of trivial style comments. > + env DAILY_BRANCH_PREEXEC_HOOK=exit\ 0 \ > + OSSTEST_USE_HEAD=y \ > + BRANCHES_ALWAYS="$branch" \ > + OSSTEST_FLIGHT=$flight \ > + OSSTEST_CONFIG=$config \ > + OSSTEST_NO_BASELINE=y \ > + ./cr-daily-branch $@ $branch The use of "env" here is unnecessary. ... > + ./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 ? Thanks, Ian.