Skip to content

Commit 3fbdad3

Browse files
author
Krzysztof Wojnar
committed
chore(e2e): avd name does NOT come from CI env variables
1 parent 8fe0271 commit 3fbdad3

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

.github/workflows/android-e2e-test-fabric.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
disable-animations: false
8787
force-avd-creation: false
8888
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
89-
rns_e2e_avd_name: e2e_emulator
89+
avd-name: e2e_emulator
9090
arch: x86_64
9191
script: echo "Generated AVD snapshot for caching."
9292

@@ -102,7 +102,7 @@ jobs:
102102
disable-animations: false
103103
force-avd-creation: false
104104
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
105-
rns_e2e_avd_name: e2e_emulator
105+
avd-name: e2e_emulator
106106
arch: x86_64
107107
script: yarn test-e2e-android
108108

.github/workflows/android-e2e-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
disable-animations: false
8787
force-avd-creation: false
8888
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
89-
rns_e2e_avd_name: e2e_emulator
89+
avd-name: e2e_emulator
9090
arch: x86_64
9191
script: echo "Generated AVD snapshot for caching."
9292

@@ -102,7 +102,7 @@ jobs:
102102
disable-animations: false
103103
force-avd-creation: false
104104
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
105-
rns_e2e_avd_name: e2e_emulator
105+
avd-name: e2e_emulator
106106
arch: x86_64
107107
script: yarn test-e2e-android
108108

scripts/e2e/detox-utils.cjs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ function detectLocalAndroidEmulator() {
3939

4040
function detectAndroidEmulatorName() {
4141
// "RNS_E2E_AVD_NAME" can be set for local developement
42-
return process.env.RNS_E2E_AVD_NAME || isRunningCI
43-
? DEFAULT_CI_AVD_NAME
44-
: detectLocalAndroidEmulator();
42+
if (isRunningCI) return DEFAULT_CI_AVD_NAME;
43+
return process.env.RNS_E2E_AVD_NAME || detectLocalAndroidEmulator();
4544
}
4645

4746
/**

0 commit comments

Comments
 (0)