Skip to content

Commit 6965864

Browse files
committed
win bug fixes
1 parent 8ba397b commit 6965864

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

win/env-setup-run.ps1

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ function Setup-Web-Python {
101101
# Log-Line " venv Python path: $venvPy" $NOW_RUN_LOG_FILE
102102

103103
Log-Line "ℹ️ Installing dependencies" $NOW_RUN_LOG_FILE
104-
[void](Invoke-External -Exe "pip3" -Arguments @("install","-r","requirements.txt") -LogFile $LogFile -WorkingDirectory $TARGET)
104+
#[void](Invoke-External -Exe "pip3" -Arguments @("install","-r","requirements.txt") -LogFile $LogFile -WorkingDirectory $TARGET)
105+
pip3 install -r requirements.txt
105106
Log-Line "✅ Dependencies installed" $NOW_RUN_LOG_FILE
106107

107108
$env:PATH = (Join-Path $venv 'Scripts') + ";" + $env:PATH
@@ -145,7 +146,8 @@ $platforms
145146
$platforms -split "`n" | ForEach-Object { if ($_.Trim()) { Log-Line " $_" $NOW_RUN_LOG_FILE } }
146147

147148
Print-TestsRunningSection -Command "browserstack-sdk pytest -s tests/bstack-sample-test.py"
148-
[void](Invoke-External -Exe "browserstack-sdk" -Arguments @('pytest','-s','tests/bstack-sample-test.py') -LogFile $LogFile -WorkingDirectory $TARGET)
149+
& browserstack-sdk pytest -s tests/bstack-sample-test.py
150+
#[void](Invoke-External -Exe "browserstack-sdk" -Arguments @('pytest','-s','tests/bstack-sample-test.py') -LogFile $LogFile -WorkingDirectory $TARGET)
149151
Log-Line "ℹ️ Run Test command completed." $NOW_RUN_LOG_FILE
150152

151153
} finally {
@@ -314,10 +316,9 @@ function Setup-Mobile-Python {
314316
# $venvPy = Get-VenvPython -VenvDir $venv
315317

316318
Log-Line "ℹ️ Installing dependencies" $NOW_RUN_LOG_FILE
317-
[void](Invoke-External -Exe "pip3" -Arguments @("install","-r","requirements.txt") -LogFile $LogFile -WorkingDirectory $TARGET)
319+
& pip3 install -r requirements.txt
318320
Log-Line "✅ Dependencies installed" $NOW_RUN_LOG_FILE
319321

320-
$env:PATH = (Join-Path $venv 'Scripts') + ";" + $env:PATH
321322
$env:BROWSERSTACK_USERNAME = $BROWSERSTACK_USERNAME
322323
$env:BROWSERSTACK_ACCESS_KEY = $BROWSERSTACK_ACCESS_KEY
323324
$env:BROWSERSTACK_APP = $APP_URL
@@ -366,7 +367,8 @@ $platforms
366367

367368
Push-Location $runDir
368369
try {
369-
[void](Invoke-External -Exe "browserstack-sdk" -Arguments @('pytest','-s','bstack_sample.py') -LogFile $LogFile -WorkingDirectory (Get-Location).Path)
370+
& browserstack-sdk pytest -s bstack_sample.py
371+
#[void](Invoke-External -Exe "browserstack-sdk" -Arguments @('pytest','-s','bstack_sample.py') -LogFile $LogFile -WorkingDirectory (Get-Location).Path)
370372
} finally {
371373
Pop-Location
372374
}

0 commit comments

Comments
 (0)