ANDROID: Add remote test suite downloading with cache support.
This commit enhances the test setup by enabling the "-td" (--test-suite-build) option to accept an ab:// URL for a test suite artifact
- A new "--cache-dir" flag is introduced to allow for persistent storage of downloaded suites.
- The new "handle_test_suite_url" function encapsulates the core logic for this feature, including:
- Parsing the URL with a "parse_artifact_url" helper function.
- Calling fetch_artifact.sh to download the suite.
- Unzipping the artifact into the correct destination (/tmp or cache).
- The argument parsing and state management (bisect_builds.xml) have been updated to correctly handle and restore the test suite URL and its resolved path.
Test: ./find_build_breakage.sh \
-pb ab://git_main/aosp_cf_x86_64_only_phone-trunk_staging-userdebug/13610087-13610281 \
-tb ab://git_main/test_suites_x86_64-trunk_staging/13609932/android-cts.zip \
-t "CtsHibernationTestCases android.hibernation.cts.AutoRevokeTest#testUnusedApp_uninstallApp" \
-cd ~/Downloads/test_cd/
Bug: 433196326
Change-Id: Ibb3b6891885ddd79e5387763d8a0d588af1c4a59
Signed-off-by: Darren Chang <chihsheng@google.com>
1 file changed