From ef70ebb63a9ca9fb1215d0a0d5f46dbbfa82f6fd Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 10 Apr 2020 09:42:40 +0200 Subject: make test output clearer --- t/superuser--specify-media.t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/t/superuser--specify-media.t b/t/superuser--specify-media.t index 31e4c6a5..8381582b 100644 --- a/t/superuser--specify-media.t +++ b/t/superuser--specify-media.t @@ -45,8 +45,10 @@ sub test_urpmi { my ($para, $wanted, $bad) = @_; my $s = run_urpm_cmd("urpmi $para $name"); $s =~ s/^Preparing.*//sm; + $s =~ s/^\s+$//sm; + $s =~ s/^SECURITY: NOT checking package.*//m; - ok($s =~ m!^installing $name\S* from $wanted$!m, "$wanted in $s"); + ok($s =~ m!^installing $name\S* from $wanted$!m, "$wanted in <<'$s'>>"); isnt($s =~ m!\Q$bad/!, "$bad not in $s"); urpme($name); -- cgit v1.2.1