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

enh: polling emulator status each second up to 120 secs after starting

parent 5c369a9d
No related branches found
No related tags found
1 merge request!82fix: update to the latest zxing commit on master
Pipeline #82200 failed
...@@ -41,7 +41,15 @@ test-android: ...@@ -41,7 +41,15 @@ test-android:
else else
echo "Starting emulator"; echo "Starting emulator";
/opt/android/emulator/emulator -avd test -no-boot-anim -no-window -no-audio -no-snapshot -accel on & 2>&1 > /dev/null /opt/android/emulator/emulator -avd test -no-boot-anim -no-window -no-audio -no-snapshot -accel on & 2>&1 > /dev/null
sleep 30 counter=0
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
echo "Emulator didn't start in time. Exiting."
exit 1
fi
done
fi fi
- cd ${QDS_CI_ARTIFACTS_PATH}/android/test || exit 1 - cd ${QDS_CI_ARTIFACTS_PATH}/android/test || exit 1
- mkdir -p ${QDS_CI_JOB_TEST_RESULTS_PATH} - mkdir -p ${QDS_CI_JOB_TEST_RESULTS_PATH}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment