From fea09fe5344ff4928cf5e0309b30809c3de8a0b5 Mon Sep 17 00:00:00 2001 From: YUNSHEN XIE <1084314248@qq.com> Date: Wed, 14 Oct 2020 21:21:51 +0800 Subject: [PATCH] disable ut quickly (#27793) * disable ut quickly * fix some error * fix some error * install urllib2 package * use requests package instead of urllib2 * fix error caused by windows regular parameter * fix error on windows * fix some error * fix with format error * show disable ut in log * fix some error * fix some error * add the handling of error in executing get_quickly_disable_ut --- paddle/scripts/paddle_build.bat | 11 ++++++++- paddle/scripts/paddle_build.sh | 28 ++++++++++++++++------ tools/get_quick_disable_lt.py | 41 +++++++++++++++++++++++++++++++++ 3 files changed, 72 insertions(+), 8 deletions(-) create mode 100644 tools/get_quick_disable_lt.py diff --git a/paddle/scripts/paddle_build.bat b/paddle/scripts/paddle_build.bat index 2f7afcf17df..afb3f360a9a 100644 --- a/paddle/scripts/paddle_build.bat +++ b/paddle/scripts/paddle_build.bat @@ -293,10 +293,19 @@ dir %THIRD_PARTY_PATH:/=\%\install\mklml\lib dir %THIRD_PARTY_PATH:/=\%\install\mkldnn\bin dir %THIRD_PARTY_PATH:/=\%\install\warpctc\bin +pip install requests +python %work_dir%\tools\get_quick_disable_lt.py > Output +if %errorlevel%==0 ( + set /p disable_ut_quickly=