diff options
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | 2023-11-07 15:12:53 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2023-11-07 15:12:53 +0000 |
commit | 4df1fbd7ae226366045fa0ca80464d9826bd106f (patch) | |
tree | 5cce1f3dc9bea817c52a58b18bc527f9a3869b93 | |
parent | 03f3f5a3e504acbf466c1bcd980a7c3bb63ec59a (diff) | |
parent | 563b27a0a8ba775f2047aeea76a52d3c8370653c (diff) | |
download | bazel-4df1fbd7ae226366045fa0ca80464d9826bd106f.tar.gz |
Merge "Remove --roboleaf-mode tests from atest_integration_test." into main am: 563b27a0a8
Original change: https://android-review.googlesource.com/c/platform/build/bazel/+/2807337
Change-Id: If3bde3851e050551792a9be0811fd1dd08443725
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rwxr-xr-x | ci/atest_integration_test.sh | 31 |
1 files changed, 5 insertions, 26 deletions
diff --git a/ci/atest_integration_test.sh b/ci/atest_integration_test.sh index d704b1db..52613955 100755 --- a/ci/atest_integration_test.sh +++ b/ci/atest_integration_test.sh @@ -14,8 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -# A script to test the end-to-end flow of atest --roboleaf-mode on the Android -# CI. +# A script to test the end-to-end flow of atest on the Android CI. set -euo pipefail set -x @@ -35,8 +34,6 @@ if [ ! -n "${TARGET_PRODUCT}" ] || [ ! -n "${TARGET_BUILD_VARIANT}" ] ; then TARGET_BUILD_VARIANT=userdebug fi -remote_cache="grpcs://${FLAG_service%:*}" - out=$(get_build_var PRODUCT_OUT) # ANDROID_BUILD_TOP is deprecated, so don't use it throughout the script. @@ -44,33 +41,15 @@ out=$(get_build_var PRODUCT_OUT) cd ${ANDROID_BUILD_TOP:-.} # Use the versioned Python binaries in prebuilts/ for a reproducible -# build with minimal reliance on host tools. Add build/bazel/bin to PATH since -# atest needs 'b' -export PATH=${PWD}/prebuilts/build-tools/path/linux-x86:${PWD}/build/bazel/bin:${PATH} +# build with minimal reliance on host tools. +export PATH=${PWD}/prebuilts/build-tools/path/linux-x86:${PATH} export \ ANDROID_PRODUCT_OUT=${out} \ OUT=${out} \ ANDROID_HOST_OUT=$(get_build_var HOST_OUT) \ - ANDROID_TARGET_OUT_TESTCASES=$(get_build_var TARGET_OUT_TESTCASES) \ - REMOTE_AVD=true \ - -build/soong/soong_ui.bash --make-mode bp2build --skip-soong-tests + ANDROID_TARGET_OUT_TESTCASES=$(get_build_var TARGET_OUT_TESTCASES) build/soong/soong_ui.bash --make-mode atest --skip-soong-tests -launched_targets+=("$(cat tools/asuite/atest/test_runners/roboleaf_launched.txt | grep -v "^#" | cut -d ':' -f2 | tr '\n' ' ')") - -${OUT_DIR}/host/linux-x86/bin/atest-dev \ - --roboleaf-mode=dev \ - --bazel-arg=--config=remote_avd \ - --bazel-arg=--config=ci \ - --bazel-arg=--bes_keywords="${ROBOLEAF_BES_KEYWORDS}" \ - --bazel-arg=--bes_results_url="${ROBOLEAF_BES_RESULTS_URL}" \ - --bazel-arg=--remote_cache="${remote_cache}" \ - --bazel-arg=--project_id="${BES_PROJECT_ID}" \ - --bazel-arg=--build_metadata=ab_branch="${BRANCH_NAME}" \ - --bazel-arg=--build_metadata=ab_target="${BUILD_TARGET_NAME}" \ - --bazel-arg=--build_metadata=ab_build_id="${BUILD_NUMBER}" \ - "$@" \ - ${launched_targets[@]} +${OUT_DIR}/host/linux-x86/bin/atest-dev --host atest_unittests |