From: Ian Jackson Date: Tue, 16 May 2017 14:12:08 +0000 (+0100) Subject: cr-daily-branch: Move harness_rev definition X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=5b998b51aa54508110583f49589b75dbee2af292;p=people%2Fiwj%2Fosstest.git cr-daily-branch: Move harness_rev definition And also adjust some formatting. No functional change. Signed-off-by: Ian Jackson --- diff --git a/cr-daily-branch b/cr-daily-branch index 158554d7..f0c6718c 100755 --- a/cr-daily-branch +++ b/cr-daily-branch @@ -272,9 +272,9 @@ if [ "x$OLD_REVISION" = xdetermine-late ]; then fi case $branch in -distros-*) makeflight=./make-distros-flight ;; -xen-*-coverity)makeflight=./make-coverity-flight ;; -*) makeflight=./make-flight ;; +distros-*) makeflight=./make-distros-flight ;; +xen-*-coverity) makeflight=./make-coverity-flight ;; +*) makeflight=./make-flight ;; esac if [ "x$NEW_REVISION" = "x$OLD_REVISION" ]; then @@ -294,10 +294,12 @@ $DAILY_BRANCH_PREMAKE_HOOK flight=`$makeflight $branch $xenbranch $OSSTEST_BLESSING "$@"` +harness_rev=$(perl -e 'use Osstest; print get_harness_rev();') +narness_rev=${harness_rev%+} + case $branch in xen-unstable-smoke) - harness_rev=$(perl -e 'use Osstest; print get_harness_rev();') - : ${SMOKE_HARNESS_REV:=${harness_rev%+}} + : ${SMOKE_HARNESS_REV:=$harness_rev} ./mg-adjust-flight-makexrefs -v $flight \ '!build-amd64 !build-amd64-libvirt !build-armhf build-*' \