[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH OSSTEST v2] cr-daily-branch: Make it possible to suppress the forcing of a baseline test



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 <ian.campbell@xxxxxxxxxx>
---
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


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.