File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2956,7 +2956,7 @@ add | build | install)
29562956 ${action} _module
29572957 ;;
29582958autoinstall)
2959- check_all_is_banned $action
2959+ have_one_kernel $action
29602960 check_root && autoinstall
29612961 ;;
29622962match)
Original file line number Diff line number Diff line change @@ -1126,6 +1126,12 @@ run_with_expected_error 5 dkms autoinstall --all << EOF
11261126Error! The action autoinstall does not support the --all parameter.
11271127EOF
11281128
1129+ echo ' Running dkms autoinstall for more than one kernel version (same version twice for this test) (expected error)'
1130+ run_with_expected_error 4 dkms autoinstall -k " ${KERNEL_VER} " -k " ${KERNEL_VER} " << EOF
1131+
1132+ Error! The action autoinstall does not support multiple kernel version parameters on the command line.
1133+ EOF
1134+
11291135echo ' Running dkms autoinstall'
11301136run_with_expected_output dkms autoinstall -k " ${KERNEL_VER} " << EOF
11311137${SIGNING_PROLOGUE}
You can’t perform that action at this time.
0 commit comments