From patchwork Fri Jul 8 18:25:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Jackson X-Patchwork-Id: 9221691 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D8B5A6089D for ; Fri, 8 Jul 2016 18:29:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CDBB72836F for ; Fri, 8 Jul 2016 18:29:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C24B22837F; Fri, 8 Jul 2016 18:29:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 834722836F for ; Fri, 8 Jul 2016 18:29:02 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bLaUC-0003ru-Ao; Fri, 08 Jul 2016 18:26:48 +0000 Received: from mail6.bemta6.messagelabs.com ([85.158.143.247]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bLaU9-0003pb-WF for xen-devel@lists.xenproject.org; Fri, 08 Jul 2016 18:26:46 +0000 Received: from [85.158.143.35] by server-1.bemta-6.messagelabs.com id 84/94-09256-560FF775; Fri, 08 Jul 2016 18:26:45 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprKIsWRWlGSWpSXmKPExsXitHSDvW7Kh/p wg+V7rS2+b5nM5MDocfjDFZYAxijWzLyk/IoE1ozHxyQLDrJWzJn1m72B8TRLFyMnh4SAv8Tb 2TsYQWw2AV2Jpi1/2boYOThEBFQkbu81ADGZBUIldrywBKkQFoiR2Lt2A1gFC1DFs8vSICavg IfE7zuGEPPkJM4f/8kMYnMKeErsWnKTHcQWAipp/tXECFIuJKAmMXd9PEiYV0BQ4uTMJ2CnMA tISBx88YIZpERCgFvib7f9BEa+WUiqZiGpWsDItIpRvTi1qCy1SNdQL6koMz2jJDcxM0fX0MB MLze1uDgxPTUnMalYLzk/dxMjMIgYgGAH487nTocYJTmYlER59z2rDxfiS8pPqcxILM6ILyrN SS0+xCjDwaEkwZvzHignWJSanlqRlpkDDGeYtAQHj5II7yaQNG9xQWJucWY6ROoUoy7Hgh+31 zIJseTl56VKifOmgRQJgBRllObBjYDF1iVGWSlhXkago4R4ClKLcjNLUOVfMYpzMCoJ8+4Gmc KTmVcCt+kV0BFMQEcYBIAdUZKIkJJqYJS6fPCRW3TcwtjOI19D/RJln6t3P2xa6TONW3d5Hce ljp/XP7CEBOxSDBd0y9rMzrX6QoJc3sPgkzpdm1WDzifc6OHf5CC8UZVZZ9LXx7GzZ0wX28rJ s+x1hakhR5dmCj9L+F/7f3Ob/M90i81afCHvFk/LztvTlBRmvU86NLcjSdqHf8p0ViWW4oxEQ y3mouJEAPPLtjmoAgAA X-Env-Sender: prvs=9904f56b2=Ian.Jackson@citrix.com X-Msg-Ref: server-12.tower-21.messagelabs.com!1468002402!23091338!2 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 8.77; banners=-,-,- X-VirusChecked: Checked Received: (qmail 19130 invoked from network); 8 Jul 2016 18:26:44 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-12.tower-21.messagelabs.com with RC4-SHA encrypted SMTP; 8 Jul 2016 18:26:44 -0000 X-IronPort-AV: E=Sophos;i="5.28,331,1464652800"; d="scan'208";a="372092118" From: Ian Jackson To: Date: Fri, 8 Jul 2016 19:25:56 +0100 Message-ID: <1468002385-4407-5-git-send-email-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1468002385-4407-1-git-send-email-ian.jackson@eu.citrix.com> References: <1468002385-4407-1-git-send-email-ian.jackson@eu.citrix.com> MIME-Version: 1.0 X-DLP: MIA1 Cc: Ian Jackson Subject: [Xen-devel] [OSSTEST PATCH 04/33] mg-schema-test-database: Prepare for `daemons' to be cleverer X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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 --- mg-schema-test-database | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mg-schema-test-database b/mg-schema-test-database index 88a75cf..85cc050 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