Skip to content

Commit 387d6d0

Browse files
committed
test(ci): reject unexpected SDK image packages in fixture
1 parent fea06c9 commit 387d6d0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎test/repo-guards/android-sdk-setup-action.test.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ function systemImageFixture(rootVariable: 'ANDROID_HOME' | 'ANDROID_SDK_ROOT') {
6767
set -euo pipefail
6868
printf '%s\\n' "$*" >> "$SDK_FIXTURE_CALLS"
6969
if [ "$1" = --install ]; then
70+
if [ "$#" -lt 2 ] ||
71+
[ "$2" != 'system-images;android-36;google_apis_playstore;x86_64' ]; then
72+
exit 1
73+
fi
7074
mkdir -p "$SDK_FIXTURE_IMAGE"
7175
printf 'Pkg.Revision=%s\\n' "$SDK_FIXTURE_REVISION" > "$SDK_FIXTURE_IMAGE/source.properties"
7276
fi

0 commit comments

Comments
 (0)