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: Steven Rostedt (VMware) <rostedt@goodmis.org>
This commit is contained in:
Steven Rostedt (VMware) 2018-03-22 16:36:34 -04:00
parent b337f9790a
commit b2b07ea282
1 changed files with 5 additions and 1 deletions

View File

@ -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";
}