Skip to content

Commit 9972fc0

Browse files
committed
ktest: Fix make_min_config to handle new assign_configs call
Commit 6071c22 "ktest: Rewrite the config-bisect to actually work" fixed the config-bisect to work nicely but in doing so it broke make_min_config by changing the way assign_configs works. The assign_configs function now adds the config to the hash even if it is disabled, but changes the hash value to be that of the line "# CONFIG_FOO is not set". Unfortunately, the make_min_config test only checks to see if the config is removed. It now needs to check if the config is in the hash and not set to be disabled. Cc: stable@vger.kernel.org # 3.17+ Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
1 parent 52d2158 commit 9972fc0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎tools/testing/ktest/ktest.pl‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3571,7 +3571,9 @@ sub test_this_config {
35713571
undef %configs;
35723572
assign_configs \%configs, $output_config;
35733573

3574-
return $config if (!defined($configs{$config}));
3574+
if (!defined($configs{$config}) || $configs{$config} =~ /^#/) {
3575+
return $config;
3576+
}
35753577

35763578
doprint "disabling config $config did not change .config\n";
35773579

0 commit comments

Comments
 (0)