It's hard for me to explain my problem, so let's see the code :
@echo off
cls
set errors=0
bin\behat > test.txt || set /A errors=errors+1
if %errors% EQU 0 goto ok
goto ko
:ok
echo .
echo .OK
goto end
:ko
echo .
echo .KO
:end
When I launch this batch file, I never see the OK/KO output. It looks like the batch stopped after the call to behat. But I need it to continue, in order to detect errors and manage them.
This batch works fine with other calls and I need behat being called after them. Has someone an idea to resolve this ?
Thanks
Aucun commentaire:
Enregistrer un commentaire