diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-01-18 10:03:08 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-01-18 10:03:08 +0000 |
commit | 14483fcf80d1f2977753b7d5012ee48a602c7833 (patch) | |
tree | 74fd63d2d30acc650ab653722308e0a9077bf6b7 /t | |
parent | a4532ab8579e711ae25961ce5e428dfa2cf19e83 (diff) | |
download | urpmi-14483fcf80d1f2977753b7d5012ee48a602c7833.tar urpmi-14483fcf80d1f2977753b7d5012ee48a602c7833.tar.gz urpmi-14483fcf80d1f2977753b7d5012ee48a602c7833.tar.bz2 urpmi-14483fcf80d1f2977753b7d5012ee48a602c7833.tar.xz urpmi-14483fcf80d1f2977753b7d5012ee48a602c7833.zip |
cleanup using run_urpm_cmd
Diffstat (limited to 't')
-rw-r--r-- | t/superuser--media_info_dir.t | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/t/superuser--media_info_dir.t b/t/superuser--media_info_dir.t index 2a2ba334..599ffde1 100644 --- a/t/superuser--media_info_dir.t +++ b/t/superuser--media_info_dir.t @@ -27,15 +27,9 @@ sub urpmq_various { foreach my $medium_name ('various', 'various2', 'various3') { urpmi_addmedia("'$medium_name' '$::pwd/media/$medium_name'"); } - my $cmd = urpm_cmd('urpmq') . " --fuzzy v"; - warn "# $cmd\n"; - my $out = `$cmd`; - is($out, "various\nvarious2\nvarious3\n"); - - $cmd = urpm_cmd('urpmq') . " --list"; - warn "# $cmd\n"; - $out = `$cmd`; - is($out, "various\nvarious2\nvarious3\n"); + is(run_urpm_cmd('urpmq --fuzzy v'), "various\nvarious2\nvarious3\n"); + + is(run_urpm_cmd('urpmq --list'), "various\nvarious2\nvarious3\n"); urpmi_removemedia('-a'); } |