Skip to content

Commit fb96e1f

Browse files
committed
fix ci flow for windows
1 parent a36bcee commit fb96e1f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/smoke.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ jobs:
112112
$env:FX_EXECUTABLE = "C:\Program Files\Custom Firefox\firefox.exe"
113113
Start-Process -FilePath $env:FX_EXECUTABLE -ArgumentList "--version" -Wait -NoNewWindow
114114
pipenv run python choose_ci_set.py
115-
Start-Process pipenv run pytest -ArgumentList (Get-Content .\selected_tests) -wait -NoNewWindow
115+
$selected_tests = Get-Content -Path .\selected_tests -Raw
116+
Set-Content -Path .\selected_tests -Value ("run" + "`r`n" + "pytest" + "`r`n" + $selected_tests)
117+
Start-Process pipenv -ArgumentList (Get-Content .\selected_tests) -wait -NoNewWindow
116118
$env:TEST_EXIT_CODE = $LASTEXITCODE
117119
mv artifacts artifacts-win || true
118120
exit $env:TEST_EXIT_CODE
@@ -125,7 +127,9 @@ jobs:
125127
mv ./ci_pyproject_headed.toml ./pyproject.toml;
126128
$env:FX_EXECUTABLE = "C:\Program Files\Custom Firefox\firefox.exe"
127129
pipenv run python choose_ci_set.py
128-
Start-Process pipenv run pytest -ArgumentList (Get-Content .\selected_tests) -wait -NoNewWindow
130+
$selected_tests = Get-Content -Path .\selected_tests -Raw
131+
Set-Content -Path .\selected_tests -Value ("run" + "`r`n" + "pytest" + "`r`n" + $selected_tests)
132+
Start-Process pipenv -ArgumentList (Get-Content .\selected_tests) -wait -NoNewWindow
129133
$env:TEST_EXIT_CODE = $LASTEXITCODE
130134
rm artifacts/assets -r -Force
131135
Get-ChildItem -Path "artifacts" | ForEach-Object {

0 commit comments

Comments
 (0)