summaryrefslogtreecommitdiff
path: root/round-robin-bisect.sh
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2020-09-11 14:58:32 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2020-09-11 15:03:44 +0000
commita692c2b0d9e00c10e596adb12290c940e180afda (patch)
tree3a3e3bf4924bddf813dda0b15478b029ee9f0169 /round-robin-bisect.sh
parent1d5976a5b74523cf05e5b6c1744b6af887383ea8 (diff)
round-robin-bisect.sh: Fetch $bad_branch/$bad_rev from $bad_url
... so far we were lucky that $bad_rev happened to be fetched in the workspace's clone. Change-Id: I3ecf57806607d2da3fc1d8229ccef1eace938ccf
Diffstat (limited to 'round-robin-bisect.sh')
-rwxr-xr-xround-robin-bisect.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/round-robin-bisect.sh b/round-robin-bisect.sh
index 6907e7c5..6f531da3 100755
--- a/round-robin-bisect.sh
+++ b/round-robin-bisect.sh
@@ -172,12 +172,14 @@ fi
EOF
chmod +x $artifacts/test.sh
+# Fetch $bad_branch/$bad_rev from $bad_url
+prev_rev=$(git rev-parse HEAD)
+clone_or_update_repo . "$bad_branch" "$bad_url"
bad_rev="${bad_rev-$(git_rev_parse_long . $bad_branch)}"
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 &