diff --git a/tests/pre-deploy.sh b/tests/pre-deploy.sh index 35cbeb8..e5ce7c0 100755 --- a/tests/pre-deploy.sh +++ b/tests/pre-deploy.sh @@ -25,6 +25,12 @@ lxc network attach lxdbr0 algo eth0 eth0 lxc config device set algo eth0 ipv4.address 10.0.8.100 lxc start algo +ip addr + +until dig A +short algo.lxd @10.0.8.1 | grep -vE '^$' > /dev/null; do + sleep 3 +done + case ${UBUNTU_VERSION} in 20.04) lxc exec algo -- apt remove snapd --purge -y || true @@ -34,10 +40,4 @@ case ${UBUNTU_VERSION} in ;; esac -ip addr - -until dig A +short algo.lxd @10.0.8.1 | grep -vE '^$' > /dev/null; do - sleep 3 -done - lxc list