diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-08-12 18:14:40 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-08-12 18:14:40 +0000 |
commit | c4fde25c9baf13c2c644018eefdb0099e69342da (patch) | |
tree | 67d854331a22a750efd23d62aa41c1cb92823563 /t/superuser--rpmnew.t | |
parent | 807d63ea80fbffc38ff0d84eb7eeddafa9ef354d (diff) | |
download | urpmi-c4fde25c9baf13c2c644018eefdb0099e69342da.tar urpmi-c4fde25c9baf13c2c644018eefdb0099e69342da.tar.gz urpmi-c4fde25c9baf13c2c644018eefdb0099e69342da.tar.bz2 urpmi-c4fde25c9baf13c2c644018eefdb0099e69342da.tar.xz urpmi-c4fde25c9baf13c2c644018eefdb0099e69342da.zip |
prepare next commit
Diffstat (limited to 't/superuser--rpmnew.t')
-rw-r--r-- | t/superuser--rpmnew.t | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/t/superuser--rpmnew.t b/t/superuser--rpmnew.t index a6bfee8d..20320655 100644 --- a/t/superuser--rpmnew.t +++ b/t/superuser--rpmnew.t @@ -53,16 +53,21 @@ sub check_one_content { sub test { my ($v1, $v2, $v3) = @_; + test_raw("rpm --root $::pwd/root -U", $v1, $v2, $v3); +} + +sub test_raw { + my ($cmd, $v1, $v2, $v3) = @_; - system_("rpm --root $::pwd/root -i media/$medium_name/a-1-*.rpm"); + system_("$cmd media/$medium_name/a-1-*.rpm"); is(`rpm -qa --root $::pwd/root`, "a-1-1\n"); check_content('a-1', @$v1); - system_("rpm --root $::pwd/root -U media/$medium_name/a-2-*.rpm"); + system_("$cmd media/$medium_name/a-2-*.rpm"); is(`rpm -qa --root $::pwd/root`, "a-2-1\n"); check_content('a-2', @$v2); - system_("rpm --root $::pwd/root -U media/$medium_name/a-3-*.rpm"); + system_("$cmd media/$medium_name/a-3-*.rpm"); is(`rpm -qa --root $::pwd/root`, "a-3-1\n"); check_content('a-3', @$v3); |