diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-08-22 16:24:57 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-08-22 16:24:57 +0000 |
commit | 2abcc99cd8dd910a3de4d53195ba238beded9aab (patch) | |
tree | ffd099056e718d03c4df13a9b3d8d3a596cd249a /t/helper.pm | |
parent | 47111fae92cb3ec60572cbd008cae462cf660816 (diff) | |
download | urpmi-2abcc99cd8dd910a3de4d53195ba238beded9aab.tar urpmi-2abcc99cd8dd910a3de4d53195ba238beded9aab.tar.gz urpmi-2abcc99cd8dd910a3de4d53195ba238beded9aab.tar.bz2 urpmi-2abcc99cd8dd910a3de4d53195ba238beded9aab.tar.xz urpmi-2abcc99cd8dd910a3de4d53195ba238beded9aab.zip |
add a test case for #31969, need to fix urpmi now...
Diffstat (limited to 't/helper.pm')
-rw-r--r-- | t/helper.pm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/t/helper.pm b/t/helper.pm index eecf5e20..d7880b73 100644 --- a/t/helper.pm +++ b/t/helper.pm @@ -9,7 +9,7 @@ our @EXPORT = qw(need_root_and_prepare urpmi_cfg set_urpmi_cfg_global_options system_ system_should_fail check_installed_fullnames check_installed_names check_nothing_installed - check_installed_and_remove check_installed_and_urpme + check_installed_and_remove check_installed_fullnames_and_remove check_installed_and_urpme ); my $using_root; @@ -118,6 +118,13 @@ sub check_installed_and_remove { check_nothing_installed(); } +sub check_installed_fullnames_and_remove { + my (@names) = @_; + check_installed_fullnames(@names); + system_("rpm --root $::pwd/root -e " . join(' ', @names)); + check_nothing_installed(); +} + sub check_installed_and_urpme { my (@names) = @_; check_installed_names(@names); |