File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -27,16 +27,10 @@ adb shell mkdir -p /data/local/tmp/llama
2727adb push model.pte /data/local/tmp/llama
2828adb push tokenizer.bin /data/local/tmp/llama
2929adb 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
3532adb uninstall org.pytorch.executorch.test || true
3633adb install -t android-test-debug-androidTest.apk
3734
3835adb 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
You can’t perform that action at this time.
0 commit comments