aboutsummaryrefslogtreecommitdiff
path: root/binary_search_tool/common/test_setup.sh
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2021-06-21 14:51:33 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2021-06-21 14:51:33 +0000
commit1430da15e99541183a2d740f7cc6b8b3c42e8cf2 (patch)
tree73936aba47fe1dc71e9cc05af9747036e935608c /binary_search_tool/common/test_setup.sh
parentb75f321fc8978b92ce3db6886ccb966768f0c7a8 (diff)
parent4e4201457e5f51a132101c611c79ccff9f713c8b (diff)
downloadtoolchain-utils-1430da15e99541183a2d740f7cc6b8b3c42e8cf2.tar.gz
Change-Id: I42e654e28c12d7f20bdac244d1fca60a3d6aa862
Diffstat (limited to 'binary_search_tool/common/test_setup.sh')
-rwxr-xr-xbinary_search_tool/common/test_setup.sh16
1 files changed, 9 insertions, 7 deletions
diff --git a/binary_search_tool/common/test_setup.sh b/binary_search_tool/common/test_setup.sh
index 56b8944a..4fa1abe2 100755
--- a/binary_search_tool/common/test_setup.sh
+++ b/binary_search_tool/common/test_setup.sh
@@ -109,15 +109,17 @@ if [[ "${BISECT_MODE}" == "OBJECT_MODE" ]]; then
echo
echo "DEPLOYING"
- if [[ ${PACKAGE} == sys-kernel/chromeos-kernel-* ]]; then
- echo "/mnt/host/source/src/scripts/update_kernel.sh \
- --remote=${BISECT_REMOTE}"
- /mnt/host/source/src/scripts/update_kernel.sh --remote=${BISECT_REMOTE}
- else
- echo "cros deploy ${BISECT_REMOTE} ${BISECT_PACKAGE}"
- cros deploy ${BISECT_REMOTE} ${BISECT_PACKAGE} --log-level=info
+
+ if [[ ${BISECT_PACKAGE} == sys-kernel/chromeos-kernel-* ]]; then
+ echo "/mnt/host/source/src/scripts/update_kernel.sh " \
+ "--remote=${BISECT_REMOTE} --board=${BISECT_BOARD}"
+ # exec the command to make sure it always exit after
+ exec /mnt/host/source/src/scripts/update_kernel.sh --remote=${BISECT_REMOTE} --board=${BISECT_BOARD}
fi
+ echo "cros deploy ${BISECT_REMOTE} ${BISECT_PACKAGE}"
+ cros deploy ${BISECT_REMOTE} ${BISECT_PACKAGE} --log-level=info
+
deploy_status=$?
if [[ ${deploy_status} -eq 0 ]] ; then