From: Ian Campbell Subject: [PATCH OSSTEST v2] cr-daily-branch: Make it possible to suppress the forcing of a baseline test Date: Mon, 10 Feb 2014 13:36:10 +0000 Message-ID: <1392039370-26216-1-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: 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.jackson@eu.citrix.com Cc: Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org This is undesirable (most of the time) in a standalone environment, where you are mostl ikely to be interested in the current version and not historical comparissons. Not sure there isn't a better way. Signed-off-by: Ian Campbell --- v2: Remove spurious leading "i" from subject (damn you vi!) Use safer test conditional/more obvious syntax Remove unneeded call to check_tested as well. --- cr-daily-branch | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/cr-daily-branch b/cr-daily-branch index da6cf2f..c4a0872 100755 --- a/cr-daily-branch +++ b/cr-daily-branch @@ -85,18 +85,20 @@ check_tested () { "$@" } -testedflight=`check_tested --revision-$tree="$OLD_REVISION"` - -if [ "x$testedflight" = x ]; then - wantpush=false - skipidentical=false - force_baseline=true - if [ "x$treeurl" != xnone: ]; then - treearg=--tree-$tree=$treeurl - fi - tested_revision=`check_tested $treearg --print-revision=$tree` - if [ "x$tested_revision" != x ]; then - OLD_REVISION="$tested_revision" +if [ "x$OSSTEST_NO_BASELINE" != xy ] ; then + testedflight=`check_tested --revision-$tree="$OLD_REVISION"` + + if [ "x$testedflight" = x ]; then + wantpush=false + skipidentical=false + force_baseline=true + if [ "x$treeurl" != xnone: ]; then + treearg=--tree-$tree=$treeurl + fi + tested_revision=`check_tested $treearg --print-revision=$tree` + if [ "x$tested_revision" != x ]; then + OLD_REVISION="$tested_revision" + fi fi fi -- 1.8.5.2