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

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>

+5 -1
+5 -1
tools/testing/ktest/ktest.pl
··· 3114 3114 3115 3115 sub config_bisect_end { 3116 3116 my ($good, $bad) = @_; 3117 + my $diffexec = "diff -u"; 3117 3118 3119 + if (-f "$builddir/scripts/diffconfig") { 3120 + $diffexec = "$builddir/scripts/diffconfig"; 3121 + } 3118 3122 doprint "\n\n***************************************\n"; 3119 3123 doprint "No more config bisecting possible.\n"; 3120 - doprint `diff -u $good $bad`; 3124 + run_command "$diffexec $good $bad", 1; 3121 3125 doprint "***************************************\n\n"; 3122 3126 } 3123 3127