mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
ktest: Accept quoted bad term in git bisect output
Git commit 0c0f93e7fa64 ("bisect: print bisect terms in single quotes")
changed the completion message to put single quotes around the bisect term.
run_git_bisect() only recognizes "is the first bad commit", so it misses
completion and continues the bisect loop with newer Git.
Accept both quoted and unquoted forms to retain compatibility with older
Git versions.
Link: https://git.kernel.org/pub/scm/git/git.git/commit/?id=0c0f93e7fa645c1058226a9bfde9e2b4441edf96
Assisted-by: LLM
Signed-off-by: Ricardo B. Marlière (SUSE) <ricardo@marliere.net>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
parent
bde7aa6d4b
commit
5b598ba5f3
|
|
@ -3030,7 +3030,7 @@ sub run_git_bisect {
|
|||
doprint "SUCCESS\n";
|
||||
if ($output =~ m/^(Bisecting: .*\(roughly \d+ steps?\))\s+\[([[:xdigit:]]+)\]/) {
|
||||
doprint "$1 [$2]\n";
|
||||
} elsif ($output =~ m/^([[:xdigit:]]+) is the first bad commit/) {
|
||||
} elsif ($output =~ m/^([[:xdigit:]]+) is the first (bad|'bad') commit/) {
|
||||
$bisect_bad_commit = $1;
|
||||
doprint "Found bad commit... $1\n";
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user