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

cicd: fix the app name in the tests

parent d93656e0
No related branches found
No related tags found
No related merge requests found
Pipeline #71399 passed
......@@ -20,11 +20,11 @@ test-x86_64:
- cd ${QDS_CI_ARTIFACTS_PATH}/x86_64/test || exit 1
- mkdir -p ${QDS_CI_JOB_TEST_RESULTS_PATH}
- adb install -r -g android-build-release.apk
- adb shell "run-as io.qt.qtuiviewer.test rm -rf /data/data/io.qt.qtuiviewer.test/files/output.junitxml"
- adb shell am start -e applicationArguments "'-o output.junitxml,junitxml'" -n io.qt.qtuiviewer.test/org.qtproject.qt.android.bindings.QtActivity
- 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
- |
counter=0
while [ -z "$(adb shell pidof -s io.qt.qtuiviewer.test)" ]; do
while [ -z "$(adb shell pidof -s io.qt.qtdesignviewer.test)" ]; do
echo "Waiting for test to start"
sleep 0.1
counter=$((counter+1))
......@@ -33,11 +33,11 @@ test-x86_64:
exit 1
fi
done
- PID_OF_TEST=$(adb shell pidof -s io.qt.qtuiviewer.test)
- PID_OF_TEST=$(adb shell pidof -s io.qt.qtdesignviewer.test)
- 'echo "PID of test: ${PID_OF_TEST}"'
- |
counter=0
while [ -n "$(adb shell pidof -s io.qt.qtuiviewer.test)" ]; do
while [ -n "$(adb shell pidof -s io.qt.qtdesignviewer.test)" ]; do
echo "Waiting for test to finish"
sleep 0.1
counter=$((counter+1))
......@@ -47,8 +47,8 @@ test-x86_64:
fi
done
- adb logcat -d --pid=${PID_OF_TEST} > ${QDS_CI_JOB_TEST_RESULTS_PATH}/logcat.txt
- adb shell "run-as io.qt.qtuiviewer.test cat /data/data/io.qt.qtuiviewer.test/files/output.junitxml" > output.junit.xml
- adb uninstall io.qt.qtuiviewer.test
- adb shell "run-as io.qt.qtdesignviewer.test cat /data/data/io.qt.qtdesignviewer.test/files/output.junitxml" > output.junit.xml
- adb uninstall io.qt.qtdesignviewer.test
- mv output.junit.xml ${QDS_CI_JOB_TEST_RESULTS_PATH}/test.junit.xml
artifacts:
paths:
......
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