Skip to content

Commit

Permalink
Uninstall test orchestrator and test services before starting the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensousa committed Sep 25, 2024
1 parent 9feb48c commit 3e6044b
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ jobs:
ram-size: 4096M
emulator-options: -no-window -no-snapshot-save -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
script: |
./gradlew uninstallAll
./scripts/uninstall_test_services.sh
adb shell settings put global verifier_verify_adb_installs 0
./gradlew --build-cache dpadrecyclerview-compose:connectedDebugAndroidTest
./gradlew --build-cache sample:connectedDebugAndroidTest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ jobs:
ram-size: 4096M
emulator-options: -no-window -no-snapshot-save -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
script: |
./scripts/install_test_apks.sh
./scripts/uninstall_test_services.sh
- name: Upload artifacts
uses: actions/upload-artifact@v3
Expand Down
Binary file removed artifacts/orchestrator-1.4.2.apk
Binary file not shown.
Binary file removed artifacts/test-services-1.4.2.apk
Binary file not shown.
9 changes: 0 additions & 9 deletions scripts/install_test_apks.sh

This file was deleted.

5 changes: 5 additions & 0 deletions scripts/uninstall_test_services.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
adb uninstall androidx.test.orchestrator 2> /dev/null
adb uninstall androidx.test.services 2> /dev/null
./gradlew uninstalAll || exit 1
exit 0

0 comments on commit 3e6044b

Please sign in to comment.