Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'ktest-6.14' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-ktest

Pull ktest updates from Steven Rostedt:

- Fix use of KERNEL_VERSION in newly created output directory

If a new output directory is created (O=/dir), and one of the options
uses KERNEL_VERSION which will run a "make kernelversion" in the
output directory, it will fail because there is no config file yet.

In this case, have it do a "make allnoconfig" which is the minimal
needed to run the "make kernelversion".

- Remove unused variables

- Fix some typos

* tag 'ktest-6.14' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-ktest:
ktest.pl: Fix typo "accesing"
ktest.pl: Fix typo in comment
ktest.pl: Remove unused declarations in run_bisect_test function
ktest.pl: Check kernelrelease return in get_version

+7 -4
+1 -1
tools/testing/ktest/examples/include/defaults.conf
··· 46 46 47 47 SSH_USER = root 48 48 49 - # For accesing the machine, we will ssh to root@machine. 49 + # For accessing the machine, we will ssh to root@machine. 50 50 SSH := ssh ${SSH_USER}@${MACHINE} 51 51 52 52 # Update this. The default here is ktest will ssh to the target box
+6 -3
tools/testing/ktest/ktest.pl
··· 1245 1245 # Config variables are only active while reading the 1246 1246 # config and can be defined anywhere. They also ignore 1247 1247 # TEST_START and DEFAULTS, but are skipped if they are in 1248 - # on of these sections that have SKIP defined. 1248 + # one of these sections that have SKIP defined. 1249 1249 # The save variable can be 1250 1250 # defined multiple times and the new one simply overrides 1251 1251 # the previous one. ··· 2419 2419 return if ($have_version); 2420 2420 doprint "$make kernelrelease ... "; 2421 2421 $version = `$make -s kernelrelease | tail -1`; 2422 + if (!length($version)) { 2423 + run_command "$make allnoconfig" or return 0; 2424 + doprint "$make kernelrelease ... "; 2425 + $version = `$make -s kernelrelease | tail -1`; 2426 + } 2422 2427 chomp($version); 2423 2428 doprint "$version\n"; 2424 2429 $have_version = 1; ··· 2965 2960 2966 2961 my $failed = 0; 2967 2962 my $result; 2968 - my $output; 2969 - my $ret; 2970 2963 2971 2964 $in_bisect = 1; 2972 2965