Skip to content

Commit 6a2628f

Browse files
committed
Fix
1 parent a66e01f commit 6a2628f

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

scripts/run_android_emulator.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,10 @@ adb shell mkdir -p /data/local/tmp/llama
2727
adb push model.pte /data/local/tmp/llama
2828
adb push tokenizer.bin /data/local/tmp/llama
2929
adb shell am instrument -w -r com.example.executorchllamademo.test/androidx.test.runner.AndroidJUnitRunner >result.txt 2>&1
30-
if [ grep -q FAILURES result.txt ]; then
31-
cat result.txt
32-
exit 1
33-
fi
30+
grep -q FAILURES result.txt || cat result.txt
3431

3532
adb uninstall org.pytorch.executorch.test || true
3633
adb install -t android-test-debug-androidTest.apk
3734

3835
adb shell am instrument -w -r org.pytorch.executorch.test/androidx.test.runner.AndroidJUnitRunner >result.txt 2>&1
39-
if [ grep -q FAILURES result.txt ]; then
40-
cat result.txt
41-
exit 1
42-
fi
36+
grep -q FAILURES result.txt || cat result.txt

0 commit comments

Comments
 (0)