Skip to content

Commit

Permalink
Proper exit code to calling shell
Browse files Browse the repository at this point in the history
  • Loading branch information
mgatny committed Aug 22, 2011
1 parent fed0d02 commit ada3766
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions AcceptanceTest/runat.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
@echo off

set RESULT=0

if "%1" == "" goto usage
if "%2" == "" goto usage

Expand Down Expand Up @@ -26,10 +29,14 @@ call setup.bat %2

REM release\at\atrun -t run -s "%DIR%\AcceptanceTest.exe cfg\at.cfg" -d . -c "ruby Runner.rb 127.0.0.1 %2 definitions\server\fix40\*.def definitions\server\fix41\*.def definitions\server\fix42\*.def definitions\server\fix43\*.def definitions\server\fix44\*.def definitions\server\fix50\*.def definitions\server\fix50sp1\*.def definitions\server\fix50sp2\*.def" -i .\ -o TestResult.xml
release\at\atrun -t run -s "%DIR%\AcceptanceTest.exe cfg\at.cfg" -d . -c "ruby Runner.rb 127.0.0.1 %2 %TESTS%" -i .\ -o TestResult.xml
if ERRORLEVEL 1 set RESULT=1
type TestResult.xml
goto quit

:usage
echo "Usage: runat [release | debug] [TESTFILE...]"
set RESULT=1

:quit
exit /B %RESULT%

0 comments on commit ada3766

Please sign in to comment.