]> xenbits.xensource.com Git - people/iwj/osstest.git/commitdiff
mg-schema-test-database: Prepare for `daemons' to be cleverer
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 7 Jul 2016 16:25:44 +0000 (17:25 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 14 Jul 2016 12:03:34 +0000 (13:03 +0100)
We are going to want to be able to specify daemons individually.

Replace the call to parse_only_suffix so that we have somewhere to
parse extra arguments.  No functional change yet.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
mg-schema-test-database

index 88a75cf9944b0b8347027c187c25bff702f13eb0..85cc050022420abbd585e56fef85e3554a43c522 100755 (executable)
@@ -557,7 +557,12 @@ END
 #========== DAEMONS ==========
 
 daemons)
-       parse_only_suffix "$@"
+       for arg in "$@"; do
+               case "$arg" in
+               _*)     suffix="$arg" ;;
+               *)      fail 'bad usage' ;;
+               esac
+       done
 
        dbname