Skip to content

Commit bb2c16d

Browse files
authored
Stabilize test execution (#33)
* Stabilize test execution Stabilize tests by modifying emulator parameters, adding args -gpu swiftshader_indirect -noaudio -no-boot-anim * Update settings.androidwebsession.json adbExecTimeout set to 30sec
1 parent bd2ae0c commit bb2c16d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
$ANDROID_HOME/emulator/emulator -list-avds
7474
7575
echo "Starting emulator"
76-
nohup $ANDROID_HOME/emulator/emulator -avd "$(ANDROID_EMU_NAME)" -no-snapshot > /dev/null 2>&1 &
76+
nohup $ANDROID_HOME/emulator/emulator -avd "$(ANDROID_EMU_NAME)" -gpu swiftshader_indirect -noaudio -no-boot-anim -no-snapshot > /dev/null 2>&1 &
7777
$ANDROID_HOME/platform-tools/adb wait-for-device
7878
while [[ $? -ne 0 ]]; do sleep 1; $ANDROID_HOME/platform-tools/adb shell pm list packages; done;
7979
$ANDROID_HOME/platform-tools/adb devices

src/test/resources/settings.androidwebsession.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"w3c": false
1515
},
1616
"uiautomator2ServerInstallTimeout": 30000,
17+
"adbExecTimeout": 30000,
1718
"eventTimings": true
1819
}
1920
}
@@ -49,4 +50,4 @@
4950
"horizontalOffset": 0.5
5051
}
5152
}
52-
}
53+
}

0 commit comments

Comments
 (0)