From 2009b384bf678583ef0ff0647d5e8fb88114c3ff Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Tue, 12 Jan 2010 14:09:15 +0000 Subject: adjust tests for string changes --- t/superuser--README-urpmi.t | 2 +- t/superuser--should-restart.t | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 't') 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) = @_; -- cgit v1.2.1