diff options
author | Chase Qi <chase.qi@linaro.org> | 2015-02-09 17:26:56 +0800 |
---|---|---|
committer | Chase Qi <chase.qi@linaro.org> | 2015-02-09 17:26:56 +0800 |
commit | c23b0fac4233b3d2f52dcdff444d62ed2a4e15cd (patch) | |
tree | d536b043d50ddc7e0eab8850709a0968719dcd6e | |
parent | 0fdd202341f629252ac73c9f8c161e009f5c5938 (diff) |
android: gtest debug
-rwxr-xr-x | android/scripts/gtest.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/android/scripts/gtest.sh b/android/scripts/gtest.sh index e2a8b1c..c50fd9b 100755 --- a/android/scripts/gtest.sh +++ b/android/scripts/gtest.sh @@ -31,11 +31,12 @@ wget http://testdata.validation.linaro.org/tools/gparser.apk setenforce 0 chmod -R 777 $ScriptDIR pm install "$ScriptDIR/gparser.apk" -logcat > /data/logcat.txt 2>&1 & -sleep 180 -kill %1 -cat /data/logcat.txt |tail -n 50 -mkdir $FilesDIR +if [ `pm list packages |grep org.linaro.gparser` ]; then + mkdir $FilesDIR +else + lava-test-case gparser-apk-installation --result fail + exit 1 +fi for i in $TESTS; do # Use the last field as test case name, NF refers to the |