Skip to content

Commit

Permalink
test(fix): add mac support
Browse files Browse the repository at this point in the history
  • Loading branch information
aaraney authored and robertbartel committed Feb 2, 2024
1 parent 7d54429 commit 595540b
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions python/lib/scheduler/dmod/test/setup_it_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,25 @@ it_redis_startup()

do_setup()
{

# Make sure the necessary Docker networks have been set up, as the tests will fail otherwise
docker_dev_init_swarm_network ${DOCKER_MPI_NET_NAME:=mpi-net} \
${DOCKER_MPI_NET_SUBNET:?Need to set MPI net subnet value for testing within .test_env} \
${DOCKER_MPI_NET_GATEWAY:?Need to set MPI net gateway value for testing within .test_env} \
${DOCKER_MPI_NET_VXLAN_ID:=4097}
if [ -z "${DOCKER_MPI_NET_VXLAN_ID:-}" ]; then
docker_dev_init_swarm_network ${DOCKER_MPI_NET_NAME:=mpi-net} \
${DOCKER_MPI_NET_SUBNET:?Need to set MPI net subnet value for testing within .test_env} \
${DOCKER_MPI_NET_GATEWAY:?Need to set MPI net gateway value for testing within .test_env} \
${DOCKER_MPI_NET_DRIVER:-overlay}
else
docker_dev_init_swarm_network ${DOCKER_MPI_NET_NAME:=mpi-net} \
${DOCKER_MPI_NET_SUBNET:?Need to set MPI net subnet value for testing within .test_env} \
${DOCKER_MPI_NET_GATEWAY:?Need to set MPI net gateway value for testing within .test_env} \
${DOCKER_MPI_NET_DRIVER:=macvlan} \
${DOCKER_MPI_NET_VXLAN_ID}
fi
# Then the requests-net
docker_dev_init_swarm_network ${DOCKER_REQUESTS_NET_NAME:=requests-net} \
${DOCKER_REQUESTS_NET_SUBNET:?Need to set requests net subnet value for testing within .test_env} \
${DOCKER_REQUESTS_NET_GATEWAY:?Need to set requests net gateway value for testing within .test_env}
${DOCKER_REQUESTS_NET_GATEWAY:?Need to set requests net gateway value for testing within .test_env} \
${DOCKER_REQUESTS_NET_DRIVER:-overlay}
# Need Docker container with Redis instance
it_redis_startup
}
Expand Down

0 comments on commit 595540b

Please sign in to comment.