]> xenbits.xensource.com Git - people/liuw/osstest.git/commitdiff
sg-check-tested: Honour multiple branches (comma-separated)
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 9 Oct 2015 11:14:12 +0000 (12:14 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 16 Oct 2015 14:29:55 +0000 (15:29 +0100)
No functional change with existing invocations.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
sg-check-tested

index 1a3afa3be33e5da4f73558f784a5b7ce897d8ca2..43f2854a6f049753b82cbeaf26f7aa373e68e587 100755 (executable)
@@ -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;