From 62c0304b21f14b6c85e5f2c8439cc2e87f25e785 Mon Sep 17 00:00:00 2001 From: Aganlengzi Date: Thu, 28 Apr 2022 10:32:39 +0800 Subject: [PATCH] [CustomDevice]change import way of unpublished file in op_test test=allcases (#42285) * test op_test test=allcases * fix * avoid copy many same file * fix for win * test PYTHONPATH * change path adding way * fix win * use old way * use old way test=allcase * use old way test=allcase --- paddle/scripts/paddle_build.sh | 4 ++++ python/paddle/fluid/tests/unittests/op_test.py | 11 +++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index 9c5eef62925..5f0a70dc0e6 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -752,6 +752,8 @@ function run_linux_cpu_test() { pip install hypothesis pip install ${PADDLE_ROOT}/build/python/dist/*whl cp ${PADDLE_ROOT}/build/python/paddle/fluid/tests/unittests/op_test.py ${PADDLE_ROOT}/build/python + cp ${PADDLE_ROOT}/build/python/paddle/fluid/tests/unittests/testsuite.py ${PADDLE_ROOT}/build/python + cp -r ${PADDLE_ROOT}/build/python/paddle/fluid/tests/unittests/white_list ${PADDLE_ROOT}/build/python ut_total_startTime_s=`date +%s` if [ ${WITH_TESTING:-ON} == "ON" ] ; then cat <