ktest: Fix for v6.19:

- Fix incorrect variable in error message in config-bisect.pl
 
   If the old config file fails to get copied as the last good or bad
   config file, then it fails the program and prints an error message.
   But the variable used to print what the old config's name was incorrect.
   It was $config when it should have been $output_config.
 -----BEGIN PGP SIGNATURE-----
 
 iIoEABYKADIWIQRRSw7ePDh/lE+zeZMp5XQQmuv6qgUCaTL5PxQccm9zdGVkdEBn
 b29kbWlzLm9yZwAKCRAp5XQQmuv6qnWBAQDtZ+UNtbeNR2eHzbcQ1+ENi0aWGwF9
 e93hKyvAWkMgWAEAklDIdstyCaSQQgq3X4ilv1kaG1eu+KSWNnyhmqnyqAM=
 =KPW2
 -----END PGP SIGNATURE-----

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

Pull ktest fix from Steven Rostedt:

 - Fix incorrect variable in error message in config-bisect.pl

   If the old config file fails to get copied as the last good or bad
   config file, then it fails the program and prints an error message.

   But the variable used to print what the old config's name was
   incorrect. It was $config when it should have been $output_config.

* tag 'ktest-v6.19' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-ktest:
  ktest.pl: Fix uninitialized var in config-bisect.pl
This commit is contained in:
Linus Torvalds 2025-12-05 10:53:43 -08:00
commit 2e8c1c6a50
1 changed files with 2 additions and 2 deletions

View File

@ -741,9 +741,9 @@ if ($start) {
die "Can not find file $bad\n"; die "Can not find file $bad\n";
} }
if ($val eq "good") { if ($val eq "good") {
run_command "cp $output_config $good" or die "failed to copy $config to $good\n"; run_command "cp $output_config $good" or die "failed to copy $output_config to $good\n";
} elsif ($val eq "bad") { } elsif ($val eq "bad") {
run_command "cp $output_config $bad" or die "failed to copy $config to $bad\n"; run_command "cp $output_config $bad" or die "failed to copy $output_config to $bad\n";
} }
} }