Skip to content

Commit 751c623

Browse files
updated
1 parent bdd6115 commit 751c623

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

tools/test/releasetest/releasetest.bat

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -184,32 +184,32 @@ if ERRORLEVEL 1 (
184184
)
185185
echo;
186186

187-
echo Starting webapp..
188-
set RES=1
189-
"%1" -e dev -d -p %PORT% %APPDIR%
190-
if ERRORLEVEL 1 (
191-
echo App Start Error!
192-
exit /B 1
193-
)
194-
195-
timeout 1 /nobreak >nul
196-
set URL=http://localhost:%PORT%/blog
197-
set CMD=curl -s "%URL%" -w "%%{http_code}" -o nul
198-
set RESCODE=0
199-
for /f "usebackq delims=" %%a in (`%CMD%`) do set RESCODE=%%a
200-
"%1" -k stop %APPDIR%
201-
if ERRORLEVEL 1 (
202-
"%1" -k abort %APPDIR%
203-
)
204-
timeout 1 /nobreak >nul
205-
if not "%RESCODE%"=="200" (
206-
echo HTTP request failed
207-
echo;
208-
echo App Test Error!
209-
call :CleanUp
210-
exit /B 1
211-
)
212-
echo HTTP request success "%URL%"
187+
@REM echo Starting webapp..
188+
@REM set RES=1
189+
@REM "%1" -e dev -d -p %PORT% %APPDIR%
190+
@REM if ERRORLEVEL 1 (
191+
@REM echo App Start Error!
192+
@REM exit /B 1
193+
@REM )
194+
195+
@REM timeout 1 /nobreak >nul
196+
@REM set URL=http://localhost:%PORT%/blog
197+
@REM set CMD=curl -s "%URL%" -w "%%{http_code}" -o nul
198+
@REM set RESCODE=0
199+
@REM for /f "usebackq delims=" %%a in (`%CMD%`) do set RESCODE=%%a
200+
@REM "%1" -k stop %APPDIR%
201+
@REM if ERRORLEVEL 1 (
202+
@REM "%1" -k abort %APPDIR%
203+
@REM )
204+
@REM timeout 1 /nobreak >nul
205+
@REM if not "%RESCODE%"=="200" (
206+
@REM echo HTTP request failed
207+
@REM echo;
208+
@REM echo App Test Error!
209+
@REM call :CleanUp
210+
@REM exit /B 1
211+
@REM )
212+
@REM echo HTTP request success "%URL%"
213213

214214
exit /B 0
215215

0 commit comments

Comments
 (0)