add time when test failed (#26935)

show unittest time even if unittest failed
revert-26856-strategy_example2
Zhou Wei 5 years ago committed by GitHub
parent e480168fae
commit f772540d80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -248,6 +248,9 @@ goto:eof
:unit_test_error
call paddle_winci\Scripts\deactivate.bat 2>NUL
for /F %%# in ('wmic os get localdatetime^|findstr 20') do set end=%%#
set end=%end:~4,10%
call :timestamp "%start%" "%end%" "TestCases Total"
echo Running unit tests failed, will exit!
exit /b 8

Loading…
Cancel
Save