]> www.tinc-vpn.org Git - tinc/blobdiff - test/ns-ping.test
GitHub CI: check project for warnings with clang/gcc.
[tinc] / test / ns-ping.test
index 417ed32841c02bbe8c5b31e8948b497c76ea5cb8..8e10d11ed064b331725ff12ce46490899aea5011 100755 (executable)
@@ -1,11 +1,8 @@
 #!/bin/sh
 
-# shellcheck source=testlib.sh
 . ./testlib.sh
 
-echo "[STEP] Skip this test if we aren't root or if 'ip netns' does not exist"
-
-test "$(id -u)" = "0" || exit $EXIT_SKIP_TEST
+require_root "$0" "$@"
 test -e /dev/net/tun || exit $EXIT_SKIP_TEST
 ip netns list || exit $EXIT_SKIP_TEST