File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -112,9 +112,7 @@ jobs:
112
112
$env:FX_EXECUTABLE = "C:\Program Files\Custom Firefox\firefox.exe"
113
113
Start-Process -FilePath $env:FX_EXECUTABLE -ArgumentList "--version" -Wait -NoNewWindow
114
114
pipenv run python choose_ci_set.py
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
115
+ pipenv run pytest -n 4 $(cat selected_tests)
118
116
$env:TEST_EXIT_CODE = $LASTEXITCODE
119
117
mv artifacts artifacts-win || true
120
118
exit $env:TEST_EXIT_CODE
@@ -127,9 +125,7 @@ jobs:
127
125
mv ./ci_pyproject_headed.toml ./pyproject.toml;
128
126
$env:FX_EXECUTABLE = "C:\Program Files\Custom Firefox\firefox.exe"
129
127
pipenv run python choose_ci_set.py
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
128
+ pipenv run pytest $(cat selected_tests)
133
129
$env:TEST_EXIT_CODE = $LASTEXITCODE
134
130
rm artifacts/assets -r -Force
135
131
Get-ChildItem -Path "artifacts" | ForEach-Object {
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ markers = [
17
17
testpaths = [
18
18
" tests"
19
19
]
20
- addopts = " -vs -n 4 - -ci --run-headless --json-report --json-report-file artifacts/report.json --reruns 3 --reruns-delay 3 -m 'not incident and not unstable and not headed' --html=artifacts/report.html"
20
+ addopts = " -vs --ci --run-headless --json-report --json-report-file artifacts/report.json --reruns 3 --reruns-delay 3 -m 'not incident and not unstable and not headed' --html=artifacts/report.html"
21
21
22
22
[tool .ruff ]
23
23
target-version = " py310"
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ markers = [
17
17
testpaths = [
18
18
" tests"
19
19
]
20
- addopts = " -vs -n 4 - -ci --run-headless --json-report --json-report-file artifacts/report.json --reruns 3 --reruns-delay 3 -m 'not unstable and not headed and not noxvfb' --html=artifacts/report.html"
20
+ addopts = " -vs --ci --run-headless --json-report --json-report-file artifacts/report.json --reruns 3 --reruns-delay 3 -m 'not unstable and not headed and not noxvfb' --html=artifacts/report.html"
21
21
22
22
[tool .ruff ]
23
23
target-version = " py310"
You can’t perform that action at this time.
0 commit comments