Skip to content

Commit 11ea2f3

Browse files
Prevents shell errors when packages are missing
1 parent dda108b commit 11ea2f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ jobs:
130130
adb shell settings put global transition_animation_scale 0.0
131131
adb shell settings put global animator_duration_scale 0.0
132132
133-
for pkg in com.mparticle.kittests com.mparticle.kits.test com.mparticle.legacyTest com.mparticle.test; do adb shell pm list packages | grep -q "$pkg" && adb uninstall "$pkg"; done
133+
for pkg in com.mparticle.kittests com.mparticle.kits.test com.mparticle.legacyTest com.mparticle.test; do if adb shell pm list packages | grep -q "$pkg"; then adb uninstall "$pkg"; fi; done
134134
135135
./gradlew connectedCheck --stacktrace
136136
./gradlew -Porchestrator=true :android-core:cAT -Pandroid.testInstrumentationRunnerArguments.androidx.benchmark.enabledRules=none

0 commit comments

Comments
 (0)