From: Ian Jackson Subject: [OSSTEST PATCH 2/3] sg-check-tested: Honour multiple branches (comma-separated) Date: Fri, 9 Oct 2015 12:48:33 +0100 Message-ID: <1444391314-1895-2-git-send-email-ian.jackson@eu.citrix.com> References: <1444391314-1895-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZkWAI-0001wM-J8 for xen-devel@lists.xenproject.org; Fri, 09 Oct 2015 11:48:46 +0000 In-Reply-To: <1444391314-1895-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org No functional change with existing invocations. Signed-off-by: Ian Jackson --- sg-check-tested | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sg-check-tested b/sg-check-tested index 1a3afa3..43f2854 100755 --- a/sg-check-tested +++ b/sg-check-tested @@ -80,8 +80,9 @@ END AND r.flight = flights.flight) END } elsif (m/^--branch=(.*)$/) { - push @conds_vars, $1; - push @conds, "branch = ?"; + my @branches = split /\,/, $1; + push @conds_vars, @branches; + push @conds, "(".(join " OR ", map { "branch = ?" } @branches).")"; } elsif (m/^--blessings=(.*)$/) { my @blessings= split /\,/, $1; push @conds_vars, @blessings; -- 1.7.10.4