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

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



# 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


 


Rackspace

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