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.jack...@eu.citrix.com>
---
 Osstest/Executive.pm |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Osstest/Executive.pm b/Osstest/Executive.pm
index b8ab5cd..998a0d0 100644
--- a/Osstest/Executive.pm
+++ b/Osstest/Executive.pm
@@ -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;
     }
-- 
1.7.10.4


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

Reply via email to