Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion buildlib/tools/test_mad.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ docker_run_srv() {
local test_name="$1"
HCA=$(detect_active_ib_hca)
sudo chmod 777 /dev/infiniband/umad*
# A zombie server from a canceled or crashed run still holds the MAD
# registration on the HCA, which makes this server fail to register
docker ps -aq --filter "name=ucx_perftest_" | xargs -r docker rm -f
docker run \
--rm \
--detach \
Expand All @@ -53,8 +56,9 @@ docker_run_srv() {

docker_stop_srv() {
local test_name="$1"
cat "${PWD}/ucx_perf_srv_${test_name}_${BUILD_BUILDID}.log"
# Stop first so a missing log cannot leave a zombie server container
docker stop ucx_perftest_"$BUILD_BUILDID" || true
cat "${PWD}/ucx_perf_srv_${test_name}_${BUILD_BUILDID}.log" || true
}

set_vars() {
Expand Down
Loading