Continue running contrib regression tests if one fails, and exit
authorMagnus Hagander <magnus@hagander.net>
Thu, 5 Apr 2007 12:31:36 +0000 (12:31 +0000)
committerMagnus Hagander <magnus@hagander.net>
Thu, 5 Apr 2007 12:31:36 +0000 (12:31 +0000)
with errorlevel 1 is >= 1 checks failed.

src/tools/msvc/vcregress.bat

index febe7cfe69dbe29b0a7ce588eeef2f6906a9b528..44fe4afd767ee4a6100576727b391dc18783664c 100644 (file)
@@ -1,5 +1,5 @@
 @echo off
-REM $PostgreSQL: pgsql/src/tools/msvc/vcregress.bat,v 1.8 2007/04/05 12:10:40 mha Exp $
+REM $PostgreSQL: pgsql/src/tools/msvc/vcregress.bat,v 1.9 2007/04/05 12:31:36 mha Exp $
 
 SETLOCAL
 SET STARTDIR=%CD%
@@ -78,10 +78,12 @@ exit /b %E%
 REM Check contrib modules
 :contribcheck
 cd ..\..\..\contrib
+set CONTRIBERROR=0
 for /d %%d IN (*) do if exist %%d\sql if exist %%d\expected (
    call :onecontribcheck %%d
-   if errorlevel 1 exit /b 1
+   if errorlevel 1 set CONTRIBERROR=1
 )
+if %CONTRIBERROR%==1 exit /b 1
 goto :eof
 
 REM Check a single contrib module