summaryrefslogtreecommitdiffstats
path: root/t/superuser--README-urpmi.t
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-08-03 14:14:28 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-08-03 14:14:28 +0000
commit49ae8a7ea7b7a258bf6a56377b50d49892b4377e (patch)
tree31ec618eab6d0d58ab995197986276a956d3dfd9 /t/superuser--README-urpmi.t
parentdef94be0af851c56224faa669131439fffe6fb7c (diff)
downloadurpmi-49ae8a7ea7b7a258bf6a56377b50d49892b4377e.tar
urpmi-49ae8a7ea7b7a258bf6a56377b50d49892b4377e.tar.gz
urpmi-49ae8a7ea7b7a258bf6a56377b50d49892b4377e.tar.bz2
urpmi-49ae8a7ea7b7a258bf6a56377b50d49892b4377e.tar.xz
urpmi-49ae8a7ea7b7a258bf6a56377b50d49892b4377e.zip
- urpmi
o handle README.<version>.upgrade.urpmi and README.<version>-<release>.upgrade.urpmi: the content is displayed when upgrading from rpm older than <version> (#30187) - fix build of some test rpms
Diffstat (limited to 't/superuser--README-urpmi.t')
-rw-r--r--t/superuser--README-urpmi.t7
1 files changed, 5 insertions, 2 deletions
diff --git a/t/superuser--README-urpmi.t b/t/superuser--README-urpmi.t
index 70633c9c..d8d54fc9 100644
--- a/t/superuser--README-urpmi.t
+++ b/t/superuser--README-urpmi.t
@@ -25,6 +25,7 @@ sub test_a {
sub test_b {
system_("rpm --root $::pwd/root -i media/$medium_name/b-1-*.rpm");
+ test_urpmi('b-2', 'upgrading b', 'upgrading b 2');
test_urpmi('b', 'upgrading b');
check_installed_and_remove('b');
}
@@ -41,12 +42,14 @@ sub test_d {
}
sub test_urpmi {
- my ($para, $wanted) = @_;
+ my ($para, @wanted) = @_;
my $urpmi = urpmi_cmd();
print "# $urpmi $para\n";
my $s = `$urpmi $para`;
print $s;
- my ($msg) = $s =~ /\nMore information on package[^\n]*\n(.*?)\n-{70}/ms;
+ my @msgs = $s =~ /\nMore information on package[^\n]*\n(.*?)\n-{70}/msg;
+ my $msg = join(" -- ", sort @msgs);
+ my $wanted = join(" -- ", sort @wanted);
ok($msg eq $wanted, "wanted:$wanted, got:$msg");
}