]> xenbits.xensource.com Git - osstest.git/commitdiff
Flight restriction: Honour --exclude-flights=F1,F2,...
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 23 Jul 2015 17:40:37 +0000 (18:40 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 28 Jul 2015 14:30:21 +0000 (15:30 +0100)
To reproduce a recent bisection problem I needed to exclude not just
all flights after a certain number, but also one earlier flight.  So I
invented this option (and associated yaks).

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Osstest/Executive.pm

index b8ab5cd02e6ace8e2ec359abca1fc9f60fecd867..998a0d045deaca7b1e9963702e947b1e8302e662 100644 (file)
@@ -201,6 +201,10 @@ sub restrictflight_arg ($) {
     if ($arg =~ m/^--max-flight\=([1-9]\d*)$/) {
        $restrictflight_cond .= " AND flight <= $1";
        return 1;
+    } elsif ($arg =~ m/^--exclude-flights=([0-9,]+)$/) {
+        $restrictflight_cond .= " AND flights.flight != $_"
+           foreach split /,/, $1;
+       return 1;
     } else {
        return 0;
     }