diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-11-30 10:14:46 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-11-30 10:14:46 +0000 |
commit | 3ccf4fa6a9e2e17fe5bd8bf1b23500cae7379a1e (patch) | |
tree | 7db1a2601d861c339d3fdb65a16f7a92a355f7d8 /t/helper.pm | |
parent | 9571638b8f4070a263159530c079e2818fd200ba (diff) | |
download | urpmi-3ccf4fa6a9e2e17fe5bd8bf1b23500cae7379a1e.tar urpmi-3ccf4fa6a9e2e17fe5bd8bf1b23500cae7379a1e.tar.gz urpmi-3ccf4fa6a9e2e17fe5bd8bf1b23500cae7379a1e.tar.bz2 urpmi-3ccf4fa6a9e2e17fe5bd8bf1b23500cae7379a1e.tar.xz urpmi-3ccf4fa6a9e2e17fe5bd8bf1b23500cae7379a1e.zip |
- urpmi:
o fix regression introduced in 4.10.15:
"urpmi --force valid invalid" should warn about "invalid" but still
install "valid"
Diffstat (limited to 't/helper.pm')
-rw-r--r-- | t/helper.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/t/helper.pm b/t/helper.pm index 210aadd6..58c1e8c4 100644 --- a/t/helper.pm +++ b/t/helper.pm @@ -5,7 +5,7 @@ use base 'Exporter'; our @EXPORT = qw(need_root_and_prepare start_httpd httpd_port urpmi_addmedia urpmi_removemedia urpmi_update - urpm_cmd urpmi_cmd urpmi urpme + urpm_cmd urpmi_cmd urpmi test_urpmi_fail urpme urpmi_cfg set_urpmi_cfg_global_options system_ system_should_fail rpm_is_jbj_version @@ -71,6 +71,10 @@ sub urpmi { my ($para) = @_; system_(urpmi_cmd() . " --ignoresize $urpmi_debug_opt $para"); } +sub test_urpmi_fail { + my ($para) = @_; + system_should_fail(urpmi_cmd() . " $para"); +} sub urpme { my ($para) = @_; system_(urpm_cmd('urpme') . " $para"); |