@@ -658,15 +658,17 @@ jobs:
658
658
shell : powershell
659
659
- name : Run Powershell Tab Completion Tests
660
660
run : |
661
- just test ./tests/verify_environment.py
661
+ just test ./tests/verify_environment.py; if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
662
662
.venv\Scripts\activate.ps1; cmd /c "pytest --cov-append ./tests/shellcompletion/test_shell_resolution.py::TestShellResolution::test_powershell"; if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
663
- just test-powershell
664
- if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
663
+ just test-powershell; if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
665
664
shell : powershell
666
665
- name : Test CMD shell failure
667
666
run : |
668
667
call .venv\Scripts\activate
669
- pytest --cov-append ./tests/shellcompletion/test_shell_resolution.py::test_get_win_shell_failure
668
+ pytest --cov-append ./tests/shellcompletion/test_shell_resolution.py::test_get_win_shell_failure || exit 1
669
+ Rename-Item -Path "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NewName "powershell_disabled.exe" -Force
670
+ Rename-Item -Path "C:\Program Files\PowerShell\7\pwsh.exe" -NewName "pwsh_disabled.exe" -Force
671
+ pytest --cov-append ./tests/shellcompletion/test_shell_resolution.py::test_get_win_shell_failure || exit 1
670
672
shell : cmd
671
673
- name : Store coverage files
672
674
uses : actions/upload-artifact@v4
@@ -729,9 +731,8 @@ jobs:
729
731
run : |
730
732
just test ./tests/verify_environment.py
731
733
.venv\Scripts\activate.ps1; cmd /c "pytest --cov-append ./tests/shellcompletion/test_shell_resolution.py::TestShellResolution::test_pwsh"; if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
732
- just test-pwsh
733
- if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
734
- shell : powershell
734
+ just test-pwsh; if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
735
+ shell : pwsh
735
736
- name : Test CMD shell failure
736
737
run : |
737
738
call .venv\Scripts\activate
0 commit comments