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

[Xen-devel] [OSSTest] standalone-reset: actually honour '-f' option



standalone-reset's usage says:
    
  usage: ./standalone-reset [<options>] [<branch> [<xenbranch> [<buildflight>]]]
   branch and xenbranch default, separately, to xen-unstable
  options:
   -f<flight>     generate flight "flight", default is "standalone"
    
but then there is no place where '-f' is processed, and hence
no real way to pass a specific flight name to make-flight.
    
Signed-off-by: Dario Faggioli <dario.faggioli@xxxxxxxxxx>

diff --git a/standalone-reset b/standalone-reset
index 8be7e86..846561d 100755
--- a/standalone-reset
+++ b/standalone-reset
@@ -27,6 +27,15 @@ options:
 END
 }
 
+flight="standalone"
+while getopts "f:" opt; do
+    case "$opt" in
+        f) flight=${OPTARG};;
+        *) usage; exit 1;;
+    esac
+done
+shift $((OPTIND-1))
+
 if [ -f standalone.config ] ; then
     . standalone.config
 fi

-- 
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)

Attachment: signature.asc
Description: This is a digitally signed message part

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