Skip to content

Commit f55126e

Browse files
authored
fix build wheel script, run unittest separatly (#5777)
1 parent d63faf0 commit f55126e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/build_wheel.sh

+2-3
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,8 @@ function unittest() {
9191
if [ $? != 0 ]; then
9292
exit 1
9393
fi
94-
find "../ppdet" -name 'tests' -type d -print0 | \
95-
xargs -0 -I{} -n1 bash -c \
96-
'python -m unittest discover -v -s {}'
94+
find "../ppdet" -wholename '*tests/test_*' -type f -print0 | \
95+
xargs -0 -I{} -n1 -t bash -c 'python -u -s {}'
9796

9897
# clean TEST_DIR
9998
cd ..

0 commit comments

Comments
 (0)