Skip to content
Snippets Groups Projects
Verified Commit 0f47a405 authored by Burak Hançerli's avatar Burak Hançerli :headphones:
Browse files

enh: try to install apk for 120 secs before giving up (wait-for-device-booted-up)

parent d379b6d3
No related branches found
No related tags found
1 merge request!82fix: update to the latest zxing commit on master
Pipeline #82202 canceled
......@@ -45,7 +45,7 @@ test-android:
while [[ $(/opt/android/platform-tools/adb devices -l | egrep -Ev '^$|List' | wc -l) -eq 0 ]]; do
sleep 1
counter=$((counter+1))
if [[ $counter -gt 120 ]]; then
if [[ $counter -gt 30 ]]; then
echo "Emulator didn't start in time. Exiting."
exit 1
fi
......@@ -53,7 +53,15 @@ test-android:
fi
- cd ${QDS_CI_ARTIFACTS_PATH}/android/test || exit 1
- mkdir -p ${QDS_CI_JOB_TEST_RESULTS_PATH}
- adb install -r -g android-build-release.apk
- |
while [[ $(adb install -r -g android-build-release.apk) ]]; do
sleep 1
counter=$((counter+1))
if [[ $counter -gt 120 ]]; then
echo "Can't install the APK to the device in time. Exiting."
exit 1
fi
done
- adb shell pm clear io.qt.qtdesignviewer.test
- adb shell "run-as io.qt.qtdesignviewer.test rm -rf /data/data/io.qt.qtdesignviewer.test/files/output.junitxml"
- adb shell am start -e applicationArguments "'-o output.junitxml,junitxml'" -n io.qt.qtdesignviewer.test/org.qtproject.qt.android.bindings.QtActivity
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment