appveyor.yml: Swap stderr and stdout when running cask

This commit is contained in:
Nathaniel Nicandro 2019-05-09 19:02:00 -05:00
parent 3f0a4b7829
commit ac7ed04488

View file

@ -21,7 +21,8 @@ install:
- ps: |
Add-Content -Path run-cask -Value @'
#!/usr/bin/env bash
$CASK_PYTHON ~/.cask/bin/cask $@ 2>&1
# Swap stderr and stdout, seems that they are mixed up.
$CASK_PYTHON ~/.cask/bin/cask $@ 3>&2 2>&1 1>&3
'@
- chmod +x run-cask
- set PATH=%APPVEYOR_BUILD_FOLDER%;%PATH%
@ -82,8 +83,8 @@ test_script:
# return null even though the Job is supposes to be complete. The
# recommended solution is to ensure WaitForExit() is called.
$emacs.WaitForExit()
$emacs_exitcode = $emacs.ExitCode
if ($emacs_exitcode -eq 0) {
Write-Host "Emacs ExitCode '$($emacs.ExitCode)'"
if ($emacs.ExitCode -eq 0) {
Write-Host "Tests passed" -BackgroundColor green
} else {
throw "Tests failed"