Skip to content

Commit 6d22762

Browse files
committed
win bug fixes
1 parent 13f01d3 commit 6d22762

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

win/env-setup-run.ps1

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,11 @@ function Identify-RunStatus-Java {
466466
if ($passed -gt 0) {
467467
Log-Line "✅ Success: $passed test(s) passed." $NOW_RUN_LOG_FILE
468468
return $true
469+
} else {
470+
Log-Line "❌ Failed: $passed test(s) passed." $NOW_RUN_LOG_FILE
471+
return $false
469472
}
470-
return $false
473+
471474
}
472475

473476
function Identify-RunStatus-Python {
@@ -480,8 +483,11 @@ function Identify-RunStatus-Python {
480483
if ($passedSum -gt 0) {
481484
Log-Line "✅ Success: $passedSum test(s) passed." $NOW_RUN_LOG_FILE
482485
return $true
486+
} else {
487+
Log-Line "❌ Failed: $passedSum test(s) passed." $NOW_RUN_LOG_FILE
488+
return $false
483489
}
484-
return $false
490+
485491
}
486492

487493
function Identify-RunStatus-NodeJS {
@@ -492,8 +498,11 @@ function Identify-RunStatus-NodeJS {
492498
if ($match.Success -and [int]$match.Groups[1].Value -gt 0) {
493499
Log-Line "✅ Success: $($match.Groups[1].Value) test(s) passed." $NOW_RUN_LOG_FILE
494500
return $true
501+
} else {
502+
Log-Line "❌ Failed: 0 test(s) passed." $NOW_RUN_LOG_FILE
503+
return $false
495504
}
496-
return $false
505+
497506
}
498507

499508
# ===== Setup Environment Wrapper =====

0 commit comments

Comments
 (0)