diff options
Diffstat (limited to 't/superuser--media_info_dir.t')
-rw-r--r-- | t/superuser--media_info_dir.t | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/t/superuser--media_info_dir.t b/t/superuser--media_info_dir.t index 75bca982..b2d616f2 100644 --- a/t/superuser--media_info_dir.t +++ b/t/superuser--media_info_dir.t @@ -9,6 +9,7 @@ use Test::More 'no_plan'; need_root_and_prepare(); various(); urpmq_various(); +urpmi_force_skip_unknown(); rpm_v3(); sub various { @@ -33,6 +34,21 @@ sub urpmq_various { urpmi_removemedia('-a'); } +sub urpmi_force_skip_unknown { + my $name = 'various'; + urpmi_addmedia("$name $::pwd/media/$name"); + + urpmi($name); + check_installed_and_remove($name); + + test_urpmi_fail("$name unknown-pkg"); + + urpmi("--force $name unknown-pkg"); + check_installed_and_remove($name); + + urpmi_removemedia($name); +} + sub rpm_v3 { my @names = qw(libtermcap nls p2c); |