WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Added -u flag (unsafe) to runtest.sh, to skip the sanity

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Added -u flag (unsafe) to runtest.sh, to skip the sanity checks. This improves
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 21 Mar 2006 13:14:10 +0000
Delivery-date: Tue, 21 Mar 2006 13:15:49 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID a6c078552735d3462aad5df26b6a603cbd5f93d5
# Parent  d0db2359769c3fd1b6eb46051d2c821d58112c49
Added -u flag (unsafe) to runtest.sh, to skip the sanity checks.  This improves
turnaround when developing tests.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>

diff -r d0db2359769c -r a6c078552735 tools/xm-test/runtest.sh
--- a/tools/xm-test/runtest.sh  Tue Mar 21 10:34:41 2006
+++ b/tools/xm-test/runtest.sh  Tue Mar 21 10:39:09 2006
@@ -15,6 +15,7 @@
     echo "  -e <email>  : set email address for report"
     echo "  -r <url>    : url of test results repository to use"
     echo "  -s <report> : just submit report <report>"
+    echo "  -u          : unsafe -- do not run the sanity checks before 
starting"
     echo "  -h | --help : show this help"
 }
 
@@ -193,6 +194,7 @@
 reportserver=${xmtest_repo:-'http://xmtest.dague.org/cgi-bin/report-results'}
 batch=no
 run=yes
+unsafe=no
 GROUPENTERED=default
 
 # Resolve options
@@ -226,6 +228,11 @@
          ;;
       -s)
          run=no
+         ;;
+      -u)
+         echo "(Unsafe mode)"
+         unsafe=yes
+         report=no
          ;;
       -h|--help)
           usage
@@ -275,15 +282,20 @@
 fi
 
 if [ "$run" != "no" ]; then
-    runnable_tests
+    if [ "$unsafe" = "no" ]; then
+      runnable_tests
+    fi
     rm -f $REPORT"*"
-    make_environment_report $OSREPORTTEMP $PROGREPORTTEMP
+    if [ "$unsafe" = "no" ]; then
+      make_environment_report $OSREPORTTEMP $PROGREPORTTEMP
+    fi
     run_tests $GROUPENTERED $OUTPUT
     make_text_reports $PASSFAIL $FAILURES $OUTPUT $TXTREPORT
-    make_result_report $OUTPUT $RESULTREPORTTEMP
-    cat $OSREPORTTEMP $PROGREPORTTEMP $RESULTREPORTTEMP > $XMLREPORT
-    rm $OSREPORTTEMP $PROGREPORTTEMP $RESULTREPORTTEMP
-
+    if [ "$unsafe" = "no" ]; then
+      make_result_report $OUTPUT $RESULTREPORTTEMP
+      cat $OSREPORTTEMP $PROGREPORTTEMP $RESULTREPORTTEMP > $XMLREPORT
+      rm $OSREPORTTEMP $PROGREPORTTEMP $RESULTREPORTTEMP
+    fi
 fi
 
 if [ "$report" = "yes" ]; then

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Added -u flag (unsafe) to runtest.sh, to skip the sanity checks. This improves, Xen patchbot -unstable <=