From patchwork Mon Feb 1 14:28:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Campbell X-Patchwork-Id: 8180091 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E2EF8BEEE5 for ; Mon, 1 Feb 2016 14:31:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 079802045A for ; Mon, 1 Feb 2016 14:31:00 +0000 (UTC) Received: from lists.xen.org (lists.xenproject.org [50.57.142.19]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4B24A20434 for ; Mon, 1 Feb 2016 14:30:58 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aQFT7-00067C-Mb; Mon, 01 Feb 2016 14:28:41 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aQFT5-00065u-GV for xen-devel@lists.xen.org; Mon, 01 Feb 2016 14:28:39 +0000 Received: from [85.158.137.68] by server-17.bemta-3.messagelabs.com id A6/42-02940-69B6FA65; Mon, 01 Feb 2016 14:28:38 +0000 X-Env-Sender: prvs=832d3ee5e=Ian.Campbell@citrix.com X-Msg-Ref: server-12.tower-31.messagelabs.com!1454336915!19447152!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: 7.35.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 1195 invoked from network); 1 Feb 2016 14:28:38 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-12.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 1 Feb 2016 14:28:38 -0000 X-IronPort-AV: E=Sophos;i="5.22,380,1449532800"; d="scan'208";a="335277427" From: Ian Campbell To: , Date: Mon, 1 Feb 2016 14:28:31 +0000 Message-ID: <1454336912-28503-4-git-send-email-ian.campbell@citrix.com> X-Mailer: git-send-email 2.6.1 In-Reply-To: <1454336890.28781.99.camel@citrix.com> References: <1454336890.28781.99.camel@citrix.com> MIME-Version: 1.0 X-DLP: MIA1 Cc: Ian Campbell Subject: [Xen-devel] [PATCH OSSTEST v1 4/5] mg-show-flight-runvars: include $flight. prefix on job name if -r (recurse) X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Adds a new -r (==recurse) option which for now only adds "$flight." to the job name, i.e. nothing is recursive yet. Signed-off-by: Ian Campbell Acked-by: Ian Jackson --- mg-show-flight-runvars | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mg-show-flight-runvars b/mg-show-flight-runvars index 0cf4e13..f96539f 100755 --- a/mg-show-flight-runvars +++ b/mg-show-flight-runvars @@ -27,6 +27,7 @@ csreadconfig(); my $synthcond = '(NOT synth)'; my $synthsufx = ''; +my $recurse = 0; for (;;) { last unless @ARGV; @@ -36,6 +37,8 @@ for (;;) { if (m/^-a$/) { $synthcond = '(1=1)'; $synthsufx = '~'; + } elsif (m/^-r$/) { + $recurse = 1; } else { die "$_ ?"; } @@ -59,6 +62,7 @@ sub collect ($) { while (my (@row) = $q->fetchrow_array()) { my $synth = shift @row; + $row[0] = "$flight.$row[0]" if $recurse; $row[1] .= $synthsufx if $synth && $synth ne 'f'; # sqlite3 is typeless push @rows, \@row; }