From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Jackson Subject: [OSSTEST PATCH 07/10] Flight restriction: Honour --exclude-flights=F1, F2, ... Date: Thu, 23 Jul 2015 19:19:21 +0100 Message-ID: <1437675564-16602-8-git-send-email-ian.jackson@eu.citrix.com> References: <1437675564-16602-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 1ZIL6b-00083S-CP for xen-devel@lists.xenproject.org; Thu, 23 Jul 2015 18:20:29 +0000 In-Reply-To: <1437675564-16602-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 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 --- 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