From: Ian Campbell Date: Thu, 13 Aug 2015 15:18:36 +0000 (+0100) Subject: cr-daily-branch: Begin to support other reasons for forcing a baseline. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=8f19ed349f3b71816b4182da16a5d3bc21c6c36f;p=people%2Fdariof%2Fosstest.git cr-daily-branch: Begin to support other reasons for forcing a baseline. By converting the current boolean $force_baseline into a keyword indicating the reason. Signed-off-by: Ian Campbell Acked-by: Ian Jackson --- diff --git a/cr-daily-branch b/cr-daily-branch index e4c5532..8c294d0 100755 --- a/cr-daily-branch +++ b/cr-daily-branch @@ -47,7 +47,7 @@ determine_version () { local tversionvar=$1 local tbranch=$2 local treevarwhich=$3 - if [ "x$tbranch" = "x$branch" ] && ! $force_baseline; then + if [ "x$tbranch" = "x$branch" ] && [ "x$force_baseline" = x ]; then if [ "x$FORCE_REVISION" != x ]; then tversion="$FORCE_REVISION" else @@ -78,7 +78,7 @@ esac blessings_arg=--blessings=${DAILY_BRANCH_TESTED_BLESSING:-$OSSTEST_BLESSING} sgr_args+=" $blessings_arg" -force_baseline=false +force_baseline='' # Non-empty = indication why we are forcing baseline. skipidentical=true wantpush=$OSSTEST_PUSH @@ -103,7 +103,7 @@ if [ "x$OSSTEST_NO_BASELINE" != xy ] ; then if [ "x$testedflight" = x ]; then wantpush=false skipidentical=false - force_baseline=true + force_baseline='untested' if [ "x$treeurl" != xnone: ]; then treearg=--tree-$tree=$treeurl fi @@ -269,7 +269,8 @@ heading=tmp/$flight.heading-info : >$heading sgr_args+=" --info-headers --include-begin=$heading" -if $force_baseline; then +case "$force_baseline" in + untested) subject_prefix="[$branch baseline test] " cat >>$heading <