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

[Xen-devel] [PATCH OSSTEST v3 5/6] standalone: allow making a baseline flight.



While there make the existing --lvextend argument actually work (by passing it
to getopt) and document both.

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---
 standalone | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/standalone b/standalone
index 36f02ba..0f491c1 100755
--- a/standalone
+++ b/standalone
@@ -8,7 +8,7 @@ usage: standalone [operations] [options...]
 
 Operations:
 
-* make-flight [cf] [BRANCH]
+* make-flight [cf,lvextendmax,baseline] [BRANCH]
 
   Create a flight testing the named branch.
 
@@ -36,6 +36,8 @@ Options:
 -h HOST, --host=HOST          Test host
 -r, --reuse                   Do not wipe test host (default)
 -R, --noreuse, --noreinstall  Wipe the test host (if job or test does so)
+--lvextendmax=GB              Limit the size of the build logical volume
+--baseline                    Create a baseline flight instead of a tip flight
 
 --help                        This message
 
@@ -55,7 +57,7 @@ if [ x$op = x--help ] ; then
     exit 0
 fi
 
-TEMP=$(getopt -o c:f:h:rR --long 
config:,flight:,host:,reuse,noreuse,reinstall,help -- "$@")
+TEMP=$(getopt -o c:f:h:rR --long 
config:,flight:,host:,reuse,noreuse,reinstall,lvextendmax:,baseline,help -- 
"$@")
 
 eval set -- "$TEMP"
 
@@ -64,6 +66,7 @@ flight="standalone"
 host=
 reuse=1 # Don't blow away machines by default
 lvextendmax=50 # Leave some LVM space free for running tests
+nobaseline=y
 
 while true ; do
     case "$1" in
@@ -73,6 +76,7 @@ while true ; do
        -r|--reuse)  reuse=1;   shift 1;;
        -R|--noreuse|--reinstall)reuse=0;shift 1;;
        --lvextendmax)lvextendmax=$2; shift 2;;
+       --baseline)nobaseline=n; shift 1;;
        --help)      usage; exit 0;;
         --) shift ; break ;;
         *) echo "Internal error!" ; exit 1 ;;
@@ -163,7 +167,7 @@ case $op in
         BUILD_LVEXTEND_MAX="$lvextendmax" \
         OSSTEST_FLIGHT=$flight \
         OSSTEST_CONFIG=$config \
-        OSSTEST_NO_BASELINE=y \
+        OSSTEST_NO_BASELINE=$nobaseline \
             with_logging logs/$flight/make-flight.log ./cr-daily-branch $@ 
$branch
         ;;
 
-- 
1.9.0


_______________________________________________
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®.