runtests: restore -k option and actively process as no-op

Restore processing this option to avoid falling it through and
misinterpreted as something else, which in turn disables tests.

Exit with an error instead. We delete completely in December 2026.

Reported-by: Sam James
Bug: https://github.com/curl/curl/pull/22100#issuecomment-4789828929
Follow-up to 04305a3e40 #22100
Follow-up to 6617db6a7e #4035

Closes #22157
This commit is contained in:
Viktor Szakats 2026-06-24 17:04:03 +02:00
parent 2f4d3221aa
commit 481e10160f
No known key found for this signature in database

View file

@ -2539,6 +2539,10 @@ while(@ARGV) {
$jobs = $1;
}
}
elsif($ARGV[0] eq "-k") { # delete this check after December 2026
print "Option -k became always-on in 7.65.2 (2019) and now a no-op. Delete it to continue.\n";
exit;
}
elsif($ARGV[0] eq "-r") {
# run time statistics needs Time::HiRes
if($Time::HiRes::VERSION) {