未验证 提交 f772540d 编写于 作者: Z Zhou Wei 提交者: GitHub

add time when test failed (#26935)

show unittest time even if unittest failed
上级 e480168f
...@@ -248,6 +248,9 @@ goto:eof ...@@ -248,6 +248,9 @@ goto:eof
:unit_test_error :unit_test_error
call paddle_winci\Scripts\deactivate.bat 2>NUL 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! echo Running unit tests failed, will exit!
exit /b 8 exit /b 8
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册