diff options
author | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2020-03-18 12:47:39 +0000 |
---|---|---|
committer | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2020-03-18 12:47:39 +0000 |
commit | 8b1f705fb3f331013cc14402bb199248a17ce7c2 (patch) | |
tree | 3e34279ba96949d152bdfaf13975d0ae58a777a9 /round-robin-bisect.sh | |
parent | 44aa3ca41ccd4f89d5ac5062e6274b8fd766c912 (diff) |
round-robin-bisect.sh: Fix handling of replay data
Change-Id: I337cb412dded49c21092b9299216ab881ac9f3fd
Diffstat (limited to 'round-robin-bisect.sh')
-rwxr-xr-x | round-robin-bisect.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/round-robin-bisect.sh b/round-robin-bisect.sh index 7f67484d..efd7a8f9 100755 --- a/round-robin-bisect.sh +++ b/round-robin-bisect.sh @@ -178,9 +178,14 @@ cat <<EOF | manifest_out declare -g bad_rev=$bad_rev EOF +prev_rev=$(git rev-parse HEAD) +# Confirm regression in $bad_rev vs $baseline_rev. git checkout --detach $bad_rev $artifacts/test.sh & res=0 && wait $! || res=$? +# Restore revision previously checked out. Otherwise "git bisect run" +# below will not use replay info. +git checkout --detach $prev_rev if [ x"$res" = x"0" ]; then if $rebase_workaround; then |