Skip to content

Commit 3f66ec3

Browse files
committed
store logcat
1 parent 6a2628f commit 3f66ec3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/run_android_emulator.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,17 @@ adb install -t app-debug-androidTest.apk
2626
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
29+
adb logcat -c
2930
adb shell am instrument -w -r com.example.executorchllamademo.test/androidx.test.runner.AndroidJUnitRunner >result.txt 2>&1
31+
adb logcat -d > logcat.txt
32+
cat logcat.txt
3033
grep -q FAILURES result.txt || cat result.txt
3134

3235
adb uninstall org.pytorch.executorch.test || true
3336
adb install -t android-test-debug-androidTest.apk
3437

38+
adb logcat -c
3539
adb shell am instrument -w -r org.pytorch.executorch.test/androidx.test.runner.AndroidJUnitRunner >result.txt 2>&1
40+
adb logcat -d > logcat.txt
41+
cat logcat.txt
3642
grep -q FAILURES result.txt || cat result.txt

0 commit comments

Comments
 (0)