From nobody Tue Nov 4 11:27:12 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1602095249; cv=none; d=zohomail.com; s=zohoarc; b=ABS771o7QFgwidWciF3OCGDYPIaq2IOIjsGISJIkzR4rslRbTLtN4TIeRndnBHpfv9FfbkgnVDvhqI5Mjnn3TB4xIDzdGOKqnvaRhrQUpUtk1xii62zQELz7BLKjgx7HLXV5Aotttvfs7XAwmjJqWcAQsDOrB3mmf94c2MJnxn0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1602095249; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=FUSB9QX7oOyX96SSYR29B9DjDSUS8RMOyhDTQOyHqYk=; b=TMQPbx5F3UCQtQYEeXzYhLEXC4Oj8CXijVmlUd1QcIbANV4vXlnLeGdckxfu7D7yulwfxPZiMqsCDoVceCF4SLOIb5yvY5yITu0rgU04fCx+jW7cjelj33bh/xCT/TmFP8W8PwmMAlflTZ+jJdaCOkSaO7iHHkWZSyLVVWGvehE= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1602095249692215.9287142309978; Wed, 7 Oct 2020 11:27:29 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.3691.10867 (Exim 4.92) (envelope-from ) id 1kQE9k-00026I-F1; Wed, 07 Oct 2020 18:27:16 +0000 Received: by outflank-mailman (output) from mailman id 3691.10867; Wed, 07 Oct 2020 18:27:16 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kQE9k-00025O-0b; Wed, 07 Oct 2020 18:27:16 +0000 Received: by outflank-mailman (input) for mailman id 3691; Wed, 07 Oct 2020 18:27:14 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kQE2q-00072Q-Iy for xen-devel@lists.xenproject.org; Wed, 07 Oct 2020 18:20:08 +0000 Received: from chiark.greenend.org.uk (unknown [2001:ba8:1e3::]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 1b6a0a65-23e5-4aea-a941-1dd37c7d206f; Wed, 07 Oct 2020 18:19:32 +0000 (UTC) Received: from [172.18.45.5] (helo=zealot.relativity.greenend.org.uk) by chiark.greenend.org.uk (Debian Exim 4.84_2 #1) with esmtp (return-path ijackson@chiark.greenend.org.uk) id 1kQDkE-0007CF-6h; Wed, 07 Oct 2020 19:00:54 +0100 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kQE2q-00072Q-Iy for xen-devel@lists.xenproject.org; Wed, 07 Oct 2020 18:20:08 +0000 Received: from chiark.greenend.org.uk (unknown [2001:ba8:1e3::]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 1b6a0a65-23e5-4aea-a941-1dd37c7d206f; Wed, 07 Oct 2020 18:19:32 +0000 (UTC) Received: from [172.18.45.5] (helo=zealot.relativity.greenend.org.uk) by chiark.greenend.org.uk (Debian Exim 4.84_2 #1) with esmtp (return-path ijackson@chiark.greenend.org.uk) id 1kQDkE-0007CF-6h; Wed, 07 Oct 2020 19:00:54 +0100 X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 1b6a0a65-23e5-4aea-a941-1dd37c7d206f From: Ian Jackson To: xen-devel@lists.xenproject.org Cc: Ian Jackson Subject: [OSSTEST PATCH 82/82] sg-report-flight: Word-wrapping improvements to job and step names Date: Wed, 7 Oct 2020 19:00:24 +0100 Message-Id: <20201007180024.7932-83-iwj@xenproject.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201007180024.7932-1-iwj@xenproject.org> References: <20201007180024.7932-1-iwj@xenproject.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Use . Signed-off-by: Ian Jackson --- sg-report-flight | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/sg-report-flight b/sg-report-flight index 33f953ca..a07e03cb 100755 --- a/sg-report-flight +++ b/sg-report-flight @@ -1185,6 +1185,15 @@ sub nullcols { join ", ", map { m/::/ ? "NULL::$' as $`" : "NULL as $_" } @_; } =20 +sub encode_with_wbrs ($) { + my ($s) =3D @_; + my $re =3D qr{[-/]}; + join '', map { + my $b =3D s{^$re}{} ? (''. $& . '⁠') : ''; + $b.encode_entities($_); + } split m{(?=3D$re)}, $s; +} + sub htmloutjob ($$) { my ($fi,$job) =3D @_; return unless defined $htmldir; @@ -1666,11 +1675,9 @@ END print H "\n"; =20 foreach my $col (@cols) { - my $th=3D $col; - $th =3D~ s/\-/ $&/g; print H ""; print H ""; - print H encode_entities($th); + print H encode_with_wbrs($col); print H ""; print H ""; } @@ -1726,7 +1733,8 @@ END next if $this[1] =3D=3D $worst[1] && $ei->{Step}{status} ne 'pass'; @worst=3D@this; push @worst, - encode_entities("$ei->{Step}{stepno}. $ei->{Step}{testid}"); + encode_entities("$ei->{Step}{stepno}. "). + encode_with_wbrs($ei->{Step}{testid}); } push @worstrow1, "",$worst[3],""; push @worstrow2, "",$worst[0],""; --=20 2.20.1