summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2010-01-12 14:09:15 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2010-01-12 14:09:15 +0000
commit2009b384bf678583ef0ff0647d5e8fb88114c3ff (patch)
tree1113155a9ff8a75f9f31074f1c38a6d5574c9a79
parentbe0025cbebfd91d754be71297cb4c3a5e18fffb7 (diff)
downloadurpmi-2009b384bf678583ef0ff0647d5e8fb88114c3ff.tar
urpmi-2009b384bf678583ef0ff0647d5e8fb88114c3ff.tar.gz
urpmi-2009b384bf678583ef0ff0647d5e8fb88114c3ff.tar.bz2
urpmi-2009b384bf678583ef0ff0647d5e8fb88114c3ff.tar.xz
urpmi-2009b384bf678583ef0ff0647d5e8fb88114c3ff.zip
adjust tests for string changes
-rw-r--r--t/superuser--README-urpmi.t2
-rw-r--r--t/superuser--should-restart.t4
2 files changed, 3 insertions, 3 deletions
diff --git a/t/superuser--README-urpmi.t b/t/superuser--README-urpmi.t
index c72384a1..91b4c9c9 100644
--- a/t/superuser--README-urpmi.t
+++ b/t/superuser--README-urpmi.t
@@ -44,7 +44,7 @@ sub test_urpmi {
my ($para, @wanted) = @_;
my $s = run_urpm_cmd("urpmi $para");
print $s;
- my @msgs = $s =~ /\nMore information on package[^\n]*\n(.*?)\n-{70}/msg;
+ my @msgs = $s =~ /\nMore information on package[^\n]*\n(.*?)\n\n-{70}/msg;
my $msg = join(" -- ", sort @msgs);
my $wanted = join(" -- ", sort @wanted);
diff --git a/t/superuser--should-restart.t b/t/superuser--should-restart.t
index a8729712..ba4b5adb 100644
--- a/t/superuser--should-restart.t
+++ b/t/superuser--should-restart.t
@@ -14,9 +14,9 @@ my $medium_name = 'should-restart';
urpmi_addmedia("$medium_name $::pwd/media/$medium_name");
-test_urpmi('a', 'You should restart system for a');
+test_urpmi('a', 'You should restart your computer for a');
test_urpmi('b', '');
-test_urpmi('c', 'You should restart system for a, c');
+test_urpmi('c', 'You should restart your computer for a, c');
sub test_urpmi {
my ($para, $wanted) = @_;