```batchfile
@ECHO OFF
ECHO Running regression tests
START /Wait Dolphin7 DPRO.img7 -f RegressionTestsRun.st -q

IF %ERRORLEVEL% NEQ 0 (
  TYPE DPRO.testlog
  ECHO Tests failed=%ERRORLEVEL%
  EXIT -1
)

TYPE DPRO.testlog
ECHO Finished regression tests

```

Use contents of .lestlog file to determine success or failure rather than relying on exit code from Dolphin. The move to VS2015 seems to have exacerbated a situation where the return code from SessionManager>>quit: may not make it back to the shell. For the the time being we'll change the way we detect success or failure of the tests.
user
```batchfile
@ECHO OFF
ECHO Running regression tests
START /Wait Dolphin7 DPRO.img7 -f RegressionTestsRun.st -q
FINDSTR /L /C:" 0 errors" DPRO.testlog

IF %ERRORLEVEL% NEQ 0 (
  TYPE DPRO.testlog
  ECHO Tests failed
  EXIT -1
)

ECHO Finished regression tests```
assistant