Skip to content

Commit 8ddf7fd

Browse files
committed
win bug fixes
1 parent a0157b9 commit 8ddf7fd

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

win/env-setup-run.ps1

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ $platforms
4141
$env:BROWSERSTACK_BUILD_NAME="now-$env:NOW_OS-$TEST_TYPE-$TechStack-testng"
4242
$env:BROWSERSTACK_PROJECT_NAME="now-$env:NOW_OS-$TEST_TYPE"
4343

44-
Set-Content "browserstack.yml" -Value $yamlContent
44+
Add-Content "browserstack.yml" -Value $yamlContent
4545
Log-Line "✅ Created browserstack.yml in root directory" $NOW_RUN_LOG_FILE
4646

4747
# Validate Environment Variables
@@ -119,7 +119,7 @@ platforms:
119119
$platforms
120120
"@
121121

122-
Set-Content "browserstack.yml" -Value $yamlContent
122+
Add-Content "browserstack.yml" -Value $yamlContent
123123

124124
$env:BSTACK_PARALLELS = $ParallelsPerPlatform
125125
$env:BSTACK_PLATFORMS=$platforms
@@ -246,8 +246,9 @@ function Setup-Mobile-Java {
246246
app: $APP_URL
247247
platforms:
248248
$platforms
249-
"@
250-
$yamlContent | Set-Content -Path $env:BROWSERSTACK_CONFIG_FILE -Encoding UTF8
249+
"@
250+
251+
Add-Content -Path $env:BROWSERSTACK_CONFIG_FILE -Encoding UTF8
251252

252253
Report-BStackLocalStatus -LocalFlag $UseLocal
253254

@@ -337,7 +338,7 @@ platforms:
337338
$platforms
338339
"@
339340

340-
Set-Content "$BROWSERSTACK_CONFIG_FILE" -Value $yamlContent
341+
Add-Content "$BROWSERSTACK_CONFIG_FILE" -Value $yamlContent
341342
$script:APP_PLATFORM = $originalPlatform
342343
Log-Line "✅ Wrote platform YAMLs" $NOW_RUN_LOG_FILE
343344

0 commit comments

Comments
 (0)