Skip to content

Commit 13f01d3

Browse files
committed
win bug fixes
1 parent 5a7a122 commit 13f01d3

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.github/workflows/test-scripts.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ jobs:
249249
250250
# Test configurations
251251
$testConfigs = @(
252+
@("web", "python"),
252253
@("app", "python"),
253254
@("web", "nodejs"),
254255
@("app", "nodejs")
@@ -326,8 +327,6 @@ jobs:
326327
name: browserstack-logs-windows
327328
path: |
328329
${{ github.workspace }}/bs-logs
329-
C:\Temp\run_test_*.log
330-
C:\Users\runneradmin\*.log
331330
retention-days: 30
332331
if-no-files-found: ignore
333332

win/env-setup-run.ps1

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ function Setup-Web-NodeJS {
175175
try {
176176
Log-Line "⚙️ Running 'npm install'" $NOW_RUN_LOG_FILE
177177
Log-Line "ℹ️ Installing dependencies" $NOW_RUN_LOG_FILE
178-
[void](Invoke-External -Exe "cmd.exe" -Arguments @("/c","npm","install") -LogFile $LogFile -WorkingDirectory $TARGET)
178+
#[void](Invoke-External -Exe "cmd.exe" -Arguments @("/c","npm","install") -LogFile $LogFile -WorkingDirectory $TARGET)
179+
& npm install
179180
Log-Line "✅ Dependencies installed" $NOW_RUN_LOG_FILE
180181

181182
$caps = Generate-Web-Platforms -max_total_parallels $TEAM_PARALLELS_MAX_ALLOWED_WEB -platformsListContentFormat "json"
@@ -207,7 +208,8 @@ function Setup-Web-NodeJS {
207208
Log-Line " $caps" $NOW_RUN_LOG_FILE
208209

209210
Print-TestsRunningSection -Command "npm run test"
210-
[void](Invoke-External -Exe "cmd.exe" -Arguments @("/c","npm","run","test") -LogFile $LogFile -WorkingDirectory $TARGET)
211+
& npm run test
212+
#[void](Invoke-External -Exe "cmd.exe" -Arguments @("/c","npm","run","test") -LogFile $LogFile -WorkingDirectory $TARGET)
211213
Log-Line "ℹ️ Run Test command completed." $NOW_RUN_LOG_FILE
212214

213215
} finally {
@@ -399,7 +401,8 @@ function Setup-Mobile-NodeJS {
399401
try {
400402
Log-Line "⚙️ Running 'npm install'" $NOW_RUN_LOG_FILE
401403
Log-Line "ℹ️ Installing dependencies" $NOW_RUN_LOG_FILE
402-
[void](Invoke-External -Exe "cmd.exe" -Arguments @("/c","npm","install") -LogFile $LogFile -WorkingDirectory $testDir)
404+
& npm install
405+
#[void](Invoke-External -Exe "cmd.exe" -Arguments @("/c","npm","install") -LogFile $LogFile -WorkingDirectory $testDir)
403406
Log-Line "✅ Dependencies installed" $NOW_RUN_LOG_FILE
404407

405408
# Generate capabilities JSON and set as environment variable (like Mac)
@@ -426,7 +429,8 @@ function Setup-Mobile-NodeJS {
426429
Log-Line "ℹ️ Platforms: $capsJson" $NOW_RUN_LOG_FILE
427430

428431
Print-TestsRunningSection -Command "npm run test"
429-
[void](Invoke-External -Exe "cmd.exe" -Arguments @("/c","npm","run","test") -LogFile $LogFile -WorkingDirectory $testDir)
432+
& npm run test
433+
# [void](Invoke-External -Exe "cmd.exe" -Arguments @("/c","npm","run","test") -LogFile $LogFile -WorkingDirectory $testDir)
430434
Log-Line "ℹ️ Run Test command completed." $NOW_RUN_LOG_FILE
431435

432436
} finally {

0 commit comments

Comments
 (0)