tools: run-tests: correctly test ERRORLEVEL

This commit is contained in:
Bill Zissimopoulos 2016-09-15 21:18:52 -07:00
parent 74af44e2e7
commit 4b48502232

View File

@ -1,6 +1,7 @@
@echo off
setlocal
setlocal EnableDelayedExpansion
set Configuration=Release
if not X%1==X set Configuration=%1
@ -36,7 +37,7 @@ for %%f in (winfsp-tests-x64 winfsp-tests-x86 :fsx-memfs-x64 :fsx-memfs-x86 :win
call %%f
popd
if errorlevel 1 (
if !ERRORLEVEL! neq 0 (
set /a testfail=testfail+1
echo === Failed %%f