Skip to content

Commit 746b83e

Browse files
committed
win bug fixes
1 parent e74055b commit 746b83e

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

win/env-prequisite-checks.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function Set-ProxyInEnv {
8888
function Validate-Tech-Stack {
8989
Log-Line "ℹ️ Checking prerequisites for $script:TECH_STACK" $NOW_RUN_LOG_FILE
9090
switch ($script:TECH_STACK) {
91-
"Java" {
91+
"java" {
9292
if (-not (Get-Command java -ErrorAction SilentlyContinue)) {
9393
Log-Line "❌ Java command not found in PATH." $NOW_RUN_LOG_FILE
9494
throw "Java not found"
@@ -101,7 +101,7 @@ function Validate-Tech-Stack {
101101
Log-Line "✅ Java is installed. Version details:" $NOW_RUN_LOG_FILE
102102
($verInfo -split "`r?`n") | ForEach-Object { if ($_ -ne "") { Log-Line " $_" $NOW_RUN_LOG_FILE } }
103103
}
104-
"Python" {
104+
"python" {
105105
try {
106106
Set-PythonCmd
107107
$code = Invoke-Py -Arguments @("--version") -LogFile $null -WorkingDirectory (Get-Location).Path
@@ -115,7 +115,7 @@ function Validate-Tech-Stack {
115115
throw
116116
}
117117
}
118-
"NodeJS" {
118+
"nodejs" {
119119
if (-not (Get-Command node -ErrorAction SilentlyContinue)) {
120120
Log-Line "❌ Node.js command not found in PATH." $NOW_RUN_LOG_FILE
121121
throw "Node not found"

win/env-setup-run.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ function Setup-Environment {
508508
$logFile = $NOW_RUN_LOG_FILE
509509

510510
switch ($TechStack) {
511-
"Java" {
511+
"java" {
512512
if ($SetupType -match "web") {
513513
Setup-Web-Java -UseLocal:$localFlag -ParallelsPerPlatform $totalParallels -LogFile $logFile
514514
$success = Identify-RunStatus-Java -LogFile $logFile
@@ -517,7 +517,7 @@ function Setup-Environment {
517517
$success = Identify-RunStatus-Java -LogFile $logFile
518518
}
519519
}
520-
"Python" {
520+
"python" {
521521
if ($SetupType -match "web") {
522522
Setup-Web-Python -UseLocal:$localFlag -ParallelsPerPlatform $totalParallels -LogFile $logFile
523523
$success = Identify-RunStatus-Python -LogFile $logFile
@@ -526,7 +526,7 @@ function Setup-Environment {
526526
$success = Identify-RunStatus-Python -LogFile $logFile
527527
}
528528
}
529-
"NodeJS" {
529+
"nodejs" {
530530
if ($SetupType -match "web") {
531531
Setup-Web-NodeJS -UseLocal:$localFlag -ParallelsPerPlatform $totalParallels -LogFile $logFile
532532
$success = Identify-RunStatus-NodeJS -LogFile $logFile

win/run.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ try {
4242

4343
# Get test type and tech stack FIRST
4444
if ($RunMode -match "--silent|--debug") {
45-
$script:TEST_TYPE = if ($TT) { (Get-Culture).TextInfo.ToTitleCase($TT.ToLowerInvariant()) } else { $env:TEST_TYPE }
46-
$script:TECH_STACK = if ($TSTACK) { (Get-Culture).TextInfo.ToTitleCase($TSTACK.ToLowerInvariant()) } else { $env:TECH_STACK }
45+
$script:TEST_TYPE = $TT
46+
$script:TECH_STACK = $TSTACK
4747
Log-Line "ℹ️ Run Mode: $RunMode"
4848
} else {
4949
Resolve-Test-Type -RunMode $RunMode -CliValue $TT

0 commit comments

Comments
 (0)