tests: Support running on IPv6 networks

parent 69ed323e
...@@ -61,7 +61,12 @@ for template in ubuntu ubuntu-cloud; do ...@@ -61,7 +61,12 @@ for template in ubuntu ubuntu-cloud; do
done done
[ -n "$lxcip" ] || FAIL "to start networking in $template container" [ -n "$lxcip" ] || FAIL "to start networking in $template container"
ping -c 1 $lxcip || FAIL "to ping $template container" if echo "${lxcip}" | grep -q ":"; then
ping6 -c 1 $lxcip || FAIL "to ping $template container"
else
ping -c 1 $lxcip || FAIL "to ping $template container"
fi
# Check apparmor # Check apparmor
lxcpid=`lxc-info -n $name -p -H` lxcpid=`lxc-info -n $name -p -H`
aa=`cat /proc/$lxcpid/attr/current` aa=`cat /proc/$lxcpid/attr/current`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment