Skip to content

Commit 34bedb0

Browse files
committed
regression
1 parent 3a156c8 commit 34bedb0

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
@@ -7,8 +7,6 @@
77

88
set -ex
99

10-
free -h
11-
1210
# This script is originally adopted from https://github.com/pytorch/pytorch/blob/main/android/run_tests.sh
1311
ADB_PATH=$ANDROID_HOME/platform-tools/adb
1412

@@ -20,19 +18,15 @@ $ADB_PATH wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; d
2018
echo "List all running emulators"
2119
$ADB_PATH devices
2220

23-
adb shell "free -h"
24-
2521
adb uninstall org.pytorch.executorch.test || true
2622
adb install -t android-test-debug-androidTest.apk
2723

2824
adb logcat -c
29-
adb shell am instrument -w -r -e class org.pytorch.executorch.ModuleInstrumentationTest,org.pytorch.executorch.ModuleE2ETest \
25+
adb shell am instrument -w -r -e \
26+
class org.pytorch.executorch.ModuleInstrumentationTest,org.pytorch.executorch.ModuleE2ETest \
3027
org.pytorch.executorch.test/androidx.test.runner.AndroidJUnitRunner >result.txt 2>&1
3128
adb logcat -d > logcat.txt
32-
adb shell dumpsys meminfo
33-
3429
cat logcat.txt
35-
cat result.txt
3630
grep -q FAILURES result.txt && cat result.txt
3731
grep -q FAILURES result.txt && exit -1
3832
exit 0

0 commit comments

Comments
 (0)