ktest.pl: Use diffconfig if available for failed config bisects

Check to see if diffconfig is available and use that to diff the configs
instead of using 'diff -u', as diffconfig produces much better output of
kernel config files. It checks the source directory for the executable.
Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
parent b337f979
......@@ -3114,10 +3114,14 @@ sub run_config_bisect_test {
sub config_bisect_end {
my ($good, $bad) = @_;
my $diffexec = "diff -u";
if (-f "$builddir/scripts/diffconfig") {
$diffexec = "$builddir/scripts/diffconfig";
}
doprint "\n\n***************************************\n";
doprint "No more config bisecting possible.\n";
doprint `diff -u $good $bad`;
run_command "$diffexec $good $bad", 1;
doprint "***************************************\n\n";
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment