From: Ian Jackson Subject: [OSSTEST PATCH 4/6] sg-report-flight: Convenience aliases for runvar row Date: Wed, 1 Jul 2015 12:59:41 +0100 Message-ID: <1435751983-18984-5-git-send-email-ian.jackson@eu.citrix.com> References: <1435751983-18984-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.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZAGgH-0005oH-6G for xen-devel@lists.xenproject.org; Wed, 01 Jul 2015 11:59:57 +0000 In-Reply-To: <1435751983-18984-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 No functional change. Signed-off-by: Ian Jackson --- sg-report-flight | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/sg-report-flight b/sg-report-flight index 1f69c08..bd7d968 100755 --- a/sg-report-flight +++ b/sg-report-flight @@ -942,15 +942,18 @@ END END my $varsq= db_prepare(<execute($fi->{Flight}, $job); - while (my $varrow= $varsq->fetchrow_hashref()) { - print H ""; - print H ""; - print H ""; + while (my $varrow= $varsq->fetchrow_arrayref()) { + my ($vn,$vv,$synth) = (@$varrow); + print H ""; + print H ""; + print H ""; print H "\n"; } print H "
NameValueSource
".encode_entities($varrow->{name})."".encode_entities($varrow->{val})."".($varrow->{synth} ? 'execution' : 'definition')."
".encode_entities($vn).""; + print H encode_entities($vv); + print H "".($synth ? 'execution' : 'definition')."
\n"; -- 1.7.10.4