]> xenbits.xensource.com Git - people/aperard/osstest.git/commitdiff
cr-daily-branch: Move harness_rev definition
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 16 May 2017 14:12:08 +0000 (15:12 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Wed, 17 May 2017 22:53:57 +0000 (23:53 +0100)
And also adjust some formatting.

No functional change.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
cr-daily-branch

index 158554d79e11a2adc428f0f0c6d8b1ff7b0626ed..f0c6718ce782743585a4146f906e194c01762ade 100755 (executable)
@@ -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-*' \