Skip to content

Commit 4260054

Browse files
committed
Fix
1 parent 24a6935 commit 4260054

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/run_android_emulator.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ adb uninstall org.pytorch.executorch.test || true
2222
adb install -t android-test-debug-androidTest.apk
2323

2424
adb logcat -c
25-
adb shell am instrument -w -r -e class org.pytorch.executorch.ModuleInstrumentationTest >result.txt \
26-
org.pytorch.executorch.test/androidx.test.runner.AndroidJUnitRunner 2>&1
25+
adb shell am instrument -w -r -e class org.pytorch.executorch.ModuleInstrumentationTest \
26+
org.pytorch.executorch.test/androidx.test.runner.AndroidJUnitRunner >result.txt 2>&1
2727
adb logcat -d > logcat.txt
2828
cat logcat.txt
2929
grep -q FAILURES result.txt || cat result.txt
30+
grep -q FAILURES result.txt || exit -1

0 commit comments

Comments
 (0)