From: Ian Jackson Subject: [OSSTEST PATCH] Executive: Permit OSSTEST_TASK= (for static tasks) Date: Tue, 8 Dec 2015 14:19:26 +0000 Message-ID: <1449584366-3975-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 1a6J7l-0000lU-QF for xen-devel@lists.xenproject.org; Tue, 08 Dec 2015 14:20:13 +0000 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 If OSSTEST_TASK is not set, we construct a from the username and the nodename, and look for a such a static task. If OSSTEST_TASK /is/ set would require it to contain ` '. In this patch, permit OSSTEST_TASK to be set simply to the . This is much more convenient and doesn't involve manually looking up taskids. The risk of error seems negligible. Signed-off-by: Ian Jackson --- Osstest/Executive.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Osstest/Executive.pm b/Osstest/Executive.pm index fcef83f..84c7d46 100644 --- a/Osstest/Executive.pm +++ b/Osstest/Executive.pm @@ -446,13 +446,15 @@ sub findtask () { if (!defined $spec) { $!=0; $?=0; my $node= `uname -n`; defined $node or die "$? $!"; chomp($node); $node =~ s/\..*//; - my $refkey= "$c{Username}\@$node"; - $what= "static $refkey"; + $spec= "$c{Username}\@$node"; + } + if ($spec !~ m/\s/) { + $what= "static $spec"; $q= $dbh_tests->prepare(<execute($refkey); + $q->execute($spec); } else { my @l = split /\s+/, $spec; @l==3 or die "$spec ".scalar(@l)." ?"; -- 1.7.10.4