diff mbox series

[OSSTEST,10/82] hsot reuse: ms-planner: Abbreviate reporting of test shares

Message ID 20201007180024.7932-11-iwj@xenproject.org (mailing list archive)
State New, archived
Headers show
Series Reuse test hosts | expand

Commit Message

Ian Jackson Oct. 7, 2020, 5:59 p.m. UTC
From: Ian Jackson <ian.jackson@eu.citrix.com>

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
 ms-planner | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/ms-planner b/ms-planner
index 4e38e4e3..78d27b2f 100755
--- a/ms-planner
+++ b/ms-planner
@@ -414,11 +414,13 @@  END
 	next if $plan->{Events}{$reskey};
 	print DEBUG "document existing quiescent sharing $reskey".
 	    " share.Type $cshare->{Type}\n";
+	my $type = $cshare->{Type};
+	$type = "$&..." if $type =~ m{^test-\d+(?=\-)};
 	my $evt = {
             Time => $plan->{Start},
             Type => Unshare,
 	    Avail => 1,
-            Info => "recently shared $cshare->{Type}",
+            Info => "recently $type",
             PreviousShare => { %$cshare },
 	};
 	delete $evt->{PreviousShare}{OnlyPreparing};