diff options
Diffstat (limited to 'android')
-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 |