summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2020-04-10 09:42:40 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2020-04-28 20:58:59 +0200
commitef70ebb63a9ca9fb1215d0a0d5f46dbbfa82f6fd (patch)
tree888719f4585ffaebca3fa9e348849ba43f9c8d9a
parentf077f4bbeb9605010b612d1f7280e5dde729e6c4 (diff)
downloadurpmi-ef70ebb63a9ca9fb1215d0a0d5f46dbbfa82f6fd.tar
urpmi-ef70ebb63a9ca9fb1215d0a0d5f46dbbfa82f6fd.tar.gz
urpmi-ef70ebb63a9ca9fb1215d0a0d5f46dbbfa82f6fd.tar.bz2
urpmi-ef70ebb63a9ca9fb1215d0a0d5f46dbbfa82f6fd.tar.xz
urpmi-ef70ebb63a9ca9fb1215d0a0d5f46dbbfa82f6fd.zip
make test output clearer
-rw-r--r--t/superuser--specify-media.t4
1 files changed, 3 insertions, 1 deletions
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);