diff options
Diffstat (limited to 't/superuser--orphans-kernels.t')
-rw-r--r-- | t/superuser--orphans-kernels.t | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/t/superuser--orphans-kernels.t b/t/superuser--orphans-kernels.t index 2b6e00dd..f101f1f5 100644 --- a/t/superuser--orphans-kernels.t +++ b/t/superuser--orphans-kernels.t @@ -19,14 +19,17 @@ set_urpmi_cfg_global_options({ 'nb-of-new-unrequested-pkgs-between-auto-select-o # old naming, each kernel NVR is N=kernel-desktop-5.6.2-1, V=1 R=1.mga8 test_unorphan_kernels("$name-1", 'kernel-desktop-latest'); +# new naming, each kernel NVR is N=kernel-desktop, V=5.6.2 R=1.mga8 +test_unorphan_kernels("$name-2", 'kernel-desktop-latest', 'kernel-desktop'); sub test_unorphan_kernels { - my ($medium, $pkg) = @_; + my ($medium, $pkg, $o_pkg2) = @_; my $base_kversion = '5.15.4'; + $o_pkg2 ||= "kernel-desktop-${base_kversion}5-1.mga8"; print "# test_unorphan_kernels($pkg) ($base_kversion)\n"; urpmi("--media $medium --auto $pkg-${base_kversion}$_-1") foreach 1..4; urpmi("--media $medium --auto $pkg"); urpme("--auto --auto-orphans"); - check_installed_and_remove($pkg, "kernel-desktop-${base_kversion}5-1.mga8"); + check_installed_and_remove($pkg, $o_pkg2); } |