From b62286596d011f4b4dc0352b950ac76c3cd93f8a Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 18 Jan 2008 10:10:01 +0000 Subject: cleanup using run_urpm_cmd --- t/superuser--specify-media.t | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 't/superuser--specify-media.t') diff --git a/t/superuser--specify-media.t b/t/superuser--specify-media.t index b2548834..31e4c6a5 100644 --- a/t/superuser--specify-media.t +++ b/t/superuser--specify-media.t @@ -34,8 +34,7 @@ test_urpmi("--sortmedia $media[1],$media[0]", $media_dirs[1], $media[0]); sub test_urpmq { my ($para, @wanted) = @_; - my $urpmq = urpm_cmd('urpmq'); - my @l = `$urpmq $para --sources $name`; + my @l = run_urpm_cmd("urpmq $para --sources $name"); foreach my $dir (@wanted) { my $found = shift @l; is(dirname($found), $dir); @@ -44,8 +43,7 @@ sub test_urpmq { sub test_urpmi { my ($para, $wanted, $bad) = @_; - my $urpmi = urpmi_cmd(); - my $s = `$urpmi $para $name`; + my $s = run_urpm_cmd("urpmi $para $name"); $s =~ s/^Preparing.*//sm; ok($s =~ m!^installing $name\S* from $wanted$!m, "$wanted in $s"); -- cgit v1.2.1