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

fix: rename the app name in the test script for the name consistency

parent d2edcd37
No related branches found
No related tags found
1 merge request!62fix: udp broadcast timer was not started
Pipeline #77384 failed
......@@ -2,11 +2,11 @@
# This script is used to run the test on the device and collect the logs and the test results.
# Precondition: The device/emulator is connected/running and the test application is installed on it.
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 -v2'" -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 -v2'" -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))
......@@ -16,11 +16,11 @@ while [ -z "$(adb shell pidof -s io.qt.qtuiviewer.test)" ]; do
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. Elapsed time: $counter seconds"
sleep 1
counter=$((counter + 1))
......@@ -32,4 +32,4 @@ done
adb logcat -d --pid=${PID_OF_TEST}
adb logcat -d --pid=${PID_OF_TEST} >logcat.txt
adb shell "run-as io.qt.qtuiviewer.test cat /data/data/io.qt.qtuiviewer.test/files/output.junitxml" >output.junit.xml
adb shell "run-as io.qt.qtdesignviewer.test cat /data/data/io.qt.qtdesignviewer.test/files/output.junitxml" >output.junit.xml
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