fix test_launch_ps test=develop (#23333)

revert-23830-2.0-beta
gongweibao 5 years ago committed by GitHub
parent 99d30bfc36
commit 0536b5263d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -302,7 +302,7 @@ if(WITH_DISTRIBUTE)
# NOTE. test_launch only work in gpu collective mode
bash_test_modules(test_launch MODULES test_launch.sh ENVS PADDLE_BINARY_DIR=${PADDLE_BINARY_DIR})
endif()
bash_test_modules(test_launch_ps MODULES test_launch_ps.sh)
bash_test_modules(test_launch_ps MODULES test_launch_ps.sh ENVS PADDLE_BINARY_DIR=${PADDLE_BINARY_DIR})
set(dist_ut_port 1000)
foreach(TEST_OP ${DIST_TEST_OPS})

@ -1,7 +1,8 @@
#!/bin/bash
set -e
# use default values
python -m paddle.distributed.launch_ps fleet_ps_training.py 2> ut.elog
launch_py=${PADDLE_BINARY_DIR}/python/paddle/distributed/launch_ps.py
python ${launch_py} fleet_ps_training.py 2> ut.elog
if grep -q "server are killed" ut.elog; then
echo "succeed"

Loading…
Cancel
Save