From a30254129dde59877c4336fc86a5ecf4b8ea5693 Mon Sep 17 00:00:00 2001 From: Quentin Monnier Date: Wed, 18 Jan 2023 15:54:54 +0000 Subject: [PATCH] Update job-uitests.yml --- .gitlab-ci-files/job-uitests.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci-files/job-uitests.yml b/.gitlab-ci-files/job-uitests.yml index 2c4961b38..ca83c05d7 100644 --- a/.gitlab-ci-files/job-uitests.yml +++ b/.gitlab-ci-files/job-uitests.yml @@ -29,7 +29,7 @@ job-android-uitests: #define adb tcp port - RUNNING_DEVICES=$(${ANDROID_HOME}/platform-tools/adb devices) - - while [[ $RUNNING_DEVICES == *$emulator_adb_port* ]]; do; emulator_adb_port=$(($emulator_adb_port + 2)); done + - while [[ $RUNNING_DEVICES == *$emulator_adb_port* ]]; do emulator_adb_port=$(($emulator_adb_port + 2)); done - if [ $emulator_adb_port -gt 5586 ]; then echo "|warning| the 15 recommended ports are already used by other emulators. ADB may not function properly for this emulator"; fi - emulator_name=$emulator_name-$emulator_adb_port @@ -47,7 +47,8 @@ job-android-uitests: script: - set +e - #launch uitest suite + #launch uitest suites + - ANDROID_SERIAL=emulator-$emulator_adb_port - ./gradlew -Pandroid.testInstrumentationRunnerArguments.class=org.linphone.testsuites.CallTestSuite -PscreportWindowed=false connectedAndroidTest --continue - export BUILD_RESULT=$?