From 5652dca372899acfbacf46d9d8427bd1ce215250 Mon Sep 17 00:00:00 2001 From: Kaipeng Deng Date: Thu, 21 Apr 2022 13:57:03 +0800 Subject: [PATCH] fix build wheel script, run unittest separatly (#5776) --- scripts/build_wheel.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/build_wheel.sh b/scripts/build_wheel.sh index 6fa9c0b20..c3445cd75 100644 --- a/scripts/build_wheel.sh +++ b/scripts/build_wheel.sh @@ -91,9 +91,8 @@ function unittest() { if [ $? != 0 ]; then exit 1 fi - find "../ppdet" -name 'tests' -type d -print0 | \ - xargs -0 -I{} -n1 bash -c \ - 'python -m unittest discover -v -s {}' + find "../ppdet" -wholename '*tests/test_*' -type f -print0 | \ + xargs -0 -I{} -n1 -t bash -c 'python -u -s {}' # clean TEST_DIR cd .. -- GitLab