From: Ian Jackson Date: Thu, 7 Jul 2016 16:25:44 +0000 (+0100) Subject: mg-schema-test-database: Prepare for `daemons' to be cleverer X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=88de2fbf38a1cc2e13a4d025f1797ed96f73f92f;p=people%2Fiwj%2Fosstest.git mg-schema-test-database: Prepare for `daemons' to be cleverer 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 --- diff --git a/mg-schema-test-database b/mg-schema-test-database index 88a75cf9..85cc0500 100755 --- a/mg-schema-test-database +++ b/mg-schema-test-database @@ -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