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>
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;
}