From patchwork Wed Jun 21 14:14:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Jackson X-Patchwork-Id: 9801949 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3813B60329 for ; Wed, 21 Jun 2017 14:16:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 292E826222 for ; Wed, 21 Jun 2017 14:16:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1DFAF28389; Wed, 21 Jun 2017 14:16:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BAEBC26222 for ; Wed, 21 Jun 2017 14:16:43 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dNgP5-0005G4-FL; Wed, 21 Jun 2017 14:14:43 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dNgP3-0005Cf-PB for xen-devel@lists.xenproject.org; Wed, 21 Jun 2017 14:14:41 +0000 Received: from [193.109.254.147] by server-7.bemta-6.messagelabs.com id B8/2C-03620-15F7A495; Wed, 21 Jun 2017 14:14:41 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrPLMWRWlGSWpSXmKPExsXitHRDpG5AvVe kwbenphbft0xmcmD0OPzhCksAYxRrZl5SfkUCa8aLPS+ZCk5wVkzZv5SxgXEzexcjJ4eEgL/E 1r1/WEBsNgFdiaYtf9m6GDk4RARUJG7vNQAxmQVCJXa8sAQxhYHMlYfsQIpZBFQlzp5eCjaEV 8BLYsu0r2wQA+Ukzh//yQxSzgkUX/zIH8QUEvCUmH/KD8JUk5i7Ph6iUVDi5MwnYNuZBSQkDr 54wTyBkXcWktQsJKkFjEyrGDWKU4vKUot0jUz1kooy0zNKchMzc3QNDcz0clOLixPTU3MSk4r 1kvNzNzECA4YBCHYwrloQeIhRkoNJSZS33NsrUogvKT+lMiOxOCO+qDQntfgQowwHh5IE78la oJxgUWp6akVaZg4wdGHSEhw8SiK8a0qA0rzFBYm5xZnpEKlTjIpS4rwnQPoEQBIZpXlwbbB4u cQoKyXMywh0iBBPQWpRbmYJqvwrRnEORiVh3oM1QFN4MvNK4Ka/AlrMBLT4xREPkMUliQgpqQ bG5Na2nXJXr0t3nnhuJFZ6bkuybuohS99HthFBXxe+UPVtUbvKM1PKPFNAV+X41+JOr59BoaE OTQ/4LCJ3si1+P6V/Ro4LUyzTn+N29uoX1/2d8+Gusp/QIr+inb7Tt8w6bqok/GGZ7xd7J57L WopJbc1z3JP4O9mefpzfNGPiU/5vXP5Bt52UWIozEg21mIuKEwH9TedPkgIAAA== X-Env-Sender: prvs=33896ecda=Ian.Jackson@citrix.com X-Msg-Ref: server-13.tower-27.messagelabs.com!1498054474!99281155!5 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 9.4.19; banners=-,-,- X-VirusChecked: Checked Received: (qmail 44791 invoked from network); 21 Jun 2017 14:14:40 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-13.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 21 Jun 2017 14:14:40 -0000 X-IronPort-AV: E=Sophos;i="5.39,369,1493683200"; d="scan'208";a="428818130" From: Ian Jackson To: Date: Wed, 21 Jun 2017 15:14:07 +0100 Message-ID: <1498054447-11281-16-git-send-email-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1498054447-11281-1-git-send-email-ian.jackson@eu.citrix.com> References: <1498054447-11281-1-git-send-email-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Cc: Ian Jackson Subject: [Xen-devel] [OSSTEST PATCH 15/15] sg-run-job: Logfiles: Suppress links to 0-length files X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP These are not really helpful. Making them not be links makes them easier to skip by eye. Signed-off-by: Ian Jackson --- v2: New patch. --- sg-report-flight | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sg-report-flight b/sg-report-flight index f7150a0..fd8a68b 100755 --- a/sg-report-flight +++ b/sg-report-flight @@ -1042,15 +1042,19 @@ END or $dent eq '..' or $dent eq '.' or $issteplog{$dent}; stat("$htmldir/$job/$dent") or die "$dent $!"; printf H "%s", show_abs_time((stat _)[9]); + my $nolink = 0; if (-f _) { my $size = (stat _)[7]; printf H " %s", $size; + $nolink = !$size; } else { print H "dir"; } print H ""; - print H "". - encode_entities($dent).(-d _ ? "/" : "")."\n"; + print H "" + unless $nolink; + print H encode_entities($dent).(-d _ ? "/" : ""); + print H "" unless $nolink; if ($dent eq 'build') { print H " (outputs from build)"; }