From f772540d80a6b6c14ebaa0792bca2eea68d0e19e Mon Sep 17 00:00:00 2001 From: Zhou Wei <52485244+zhouwei25@users.noreply.github.com> Date: Thu, 3 Sep 2020 00:01:02 +0800 Subject: [PATCH] add time when test failed (#26935) show unittest time even if unittest failed --- paddle/scripts/paddle_build.bat | 3 +++ 1 file changed, 3 insertions(+) diff --git a/paddle/scripts/paddle_build.bat b/paddle/scripts/paddle_build.bat index 8050f07af03..ace015d2adb 100644 --- a/paddle/scripts/paddle_build.bat +++ b/paddle/scripts/paddle_build.bat @@ -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 -- GitLab