appveyor.yml: call upon cmd to redirect stderr.
authorAndy Polyakov <appro@openssl.org>
Thu, 2 Mar 2017 13:07:45 +0000 (14:07 +0100)
committerAndy Polyakov <appro@openssl.org>
Sat, 4 Mar 2017 22:18:47 +0000 (23:18 +0100)
If stderr is not redirected an uncatchable exception is thrown.

Reviewed-by: Rich Salz <rsalz@openssl.org>
appveyor.yml

index 9c896fc810f228bd782301a73a7a51462cb6d834..a5d05c6bdcdbb7174ef1de51157229885a468971 100644 (file)
@@ -33,7 +33,8 @@ before_build:
     - perl ..\Configure %TARGET% %SHARED%
     - cd ..
     - ps: >-
     - perl ..\Configure %TARGET% %SHARED%
     - cd ..
     - ps: >-
-        if (-not $env:APPVEYOR_PULL_REQUEST_NUMBER -or (&git log -2 | Select-String "\[extended tests\]") ) {
+        if (-not $env:APPVEYOR_PULL_REQUEST_NUMBER`
+            -or (&git log -2 | Select-String "\[extended tests\]") ) {
             $env:EXTENDED_TESTS="yes"
         }
 
             $env:EXTENDED_TESTS="yes"
         }
 
@@ -41,7 +42,7 @@ build_script:
     - ps: >-
         If ($env:Configuration -Match "shared" -or $env:EXTENDED_TESTS) {
             cd _build
     - ps: >-
         If ($env:Configuration -Match "shared" -or $env:EXTENDED_TESTS) {
             cd _build
-            &nmake
+            cmd /c "nmake 2>&1"
             cd ..
         }
 
             cd ..
         }
 
@@ -50,11 +51,11 @@ test_script:
         If ($env:Configuration -Match "shared" -or $env:EXTENDED_TESTS) {
             cd _build
             if ($env:EXTENDED_TESTS) {
         If ($env:Configuration -Match "shared" -or $env:EXTENDED_TESTS) {
             cd _build
             if ($env:EXTENDED_TESTS) {
-                &nmake test V=1
+                cmd /c "nmake test V=1 2>&1"
                 mkdir ..\_install
                 mkdir ..\_install
-                &nmake install install_docs DESTDIR=..\_install
+                cmd /c "nmake install install_docs DESTDIR=..\_install 2>&1"
             } Else {
             } Else {
-                &nmake test V=1 TESTS=-test_fuzz
+                cmd /c "nmake test V=1 TESTS=-test_fuzz 2>&1"
             }
             cd ..
         }
             }
             cd ..
         }