From: Ian Campbell Subject: Re: [OSSTEST PATCH 6/6] sg-report-flight: Link from runvars to to other jobs Date: Wed, 1 Jul 2015 13:28:58 +0100 Message-ID: <1435753738.21469.277.camel@citrix.com> References: <1435751983-18984-1-git-send-email-ian.jackson@eu.citrix.com> <1435751983-18984-7-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.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZAH8R-00081n-QG for xen-devel@lists.xenproject.org; Wed, 01 Jul 2015 12:29:03 +0000 In-Reply-To: <1435751983-18984-7-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: Ian Jackson Cc: xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On Wed, 2015-07-01 at 12:59 +0100, Ian Jackson wrote: "to to" again. > Signed-off-by: Ian Jackson > --- > sg-report-flight | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/sg-report-flight b/sg-report-flight > index d07ce15..d8d8492 100755 > --- a/sg-report-flight > +++ b/sg-report-flight > @@ -954,6 +954,17 @@ END > my $url; > if ($vn =~ m/^(?:\w+_)?host$/ && $vv !~ m/[^-.0-9a-z]/) { > $url = "$c{ResultsHtmlPubBaseUrl}/host/$vv.html"; > + } elsif ($vn =~ m/^(\w*job)$/ && $vv !~ m/[^-+._,=:0-9a-z]/i) { > + my ($otherflight,$otherjob) = > + eval { flight_otherjob($fi->{Flight}, $vv); }; > + if (defined $otherjob) { > + if ($otherflight eq $fi->{Flight}) { > + $url = ".."; > + } else { > + $url = "$c{ReportHtmlPubBaseUrl}/$otherflight"; > + } > + $url .= "/$otherjob/info.html"; > + } > } > print H "" if $url; > print H encode_entities($vv);