提交 3410f6fd 编写于 作者: S Steven Rostedt 提交者: Steven Rostedt

ktest: Add BISECT_FILES to run git bisect on paths

Add the config option BISECT_FILES that allows the user to
specify what path in the kernel to run the git bisect on.
Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
上级 c23dca7c
...@@ -1280,6 +1280,13 @@ sub bisect { ...@@ -1280,6 +1280,13 @@ sub bisect {
my $type = $opt{"BISECT_TYPE[$i]"}; my $type = $opt{"BISECT_TYPE[$i]"};
my $start = $opt{"BISECT_START[$i]"}; my $start = $opt{"BISECT_START[$i]"};
my $replay = $opt{"BISECT_REPLAY[$i]"}; my $replay = $opt{"BISECT_REPLAY[$i]"};
my $start_files = $opt{"BISECT_FILES[$i]"};
if (defined($start_files)) {
$start_files = " -- " . $start_files;
} else {
$start_files = "";
}
# convert to true sha1's # convert to true sha1's
$good = get_sha1($good); $good = get_sha1($good);
...@@ -1333,7 +1340,7 @@ sub bisect { ...@@ -1333,7 +1340,7 @@ sub bisect {
die "Failed to checkout $head"; die "Failed to checkout $head";
} }
run_command "git bisect start" or run_command "git bisect start$start_files" or
dodie "could not start bisect"; dodie "could not start bisect";
run_command "git bisect good $good" or run_command "git bisect good $good" or
......
...@@ -528,6 +528,15 @@ ...@@ -528,6 +528,15 @@
# when something other than the BISECT_TYPE fails, ktest.pl will # when something other than the BISECT_TYPE fails, ktest.pl will
# run "git bisect skip" and try again. # run "git bisect skip" and try again.
# #
# BISECT_FILES = <path> (optional, default undefined)
#
# To just run the git bisect on a specific path, set BISECT_FILES.
# For example:
#
# BISECT_FILES = arch/x86 kernel/time
#
# Will run the bisect with "git bisect start -- arch/x86 kernel/time"
#
# BISECT_REVERSE = 1 (optional, default 0) # BISECT_REVERSE = 1 (optional, default 0)
# #
# In those strange instances where it was broken forever # In those strange instances where it was broken forever
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册