summaryrefslogtreecommitdiffstats
path: root/tools/testing/ktest/ktest.pl
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2018-03-22 21:36:34 +0100
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2018-04-06 20:05:39 +0200
commitb2b07ea282721b6c7bed21e95e2c00dd95cb8520 (patch)
treee3a333671f106ce1daef39d6c64695521f6da0b6 /tools/testing/ktest/ktest.pl
parentktest.pl: Allow for the config-bisect.pl output to display to console (diff)
downloadlinux-b2b07ea282721b6c7bed21e95e2c00dd95cb8520.tar.xz
linux-b2b07ea282721b6c7bed21e95e2c00dd95cb8520.zip
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>
Diffstat (limited to 'tools/testing/ktest/ktest.pl')
-rwxr-xr-xtools/testing/ktest/ktest.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl
index 79c2f99629de..27505fef2dab 100755
--- a/tools/testing/ktest/ktest.pl
+++ b/tools/testing/ktest/ktest.pl
@@ -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";
}