summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2020-12-17 14:06:42 +0000
committerbluhm <bluhm@openbsd.org>2020-12-17 14:06:42 +0000
commit1d98f34286583175a9e4ff0c843e33e6e9f2db6e (patch)
tree14ecc3eca9627bb344e0fc6622900f0b4fbdc713
parentFix a race where the ${SUDO} process was killed instead of tcpdump. (diff)
downloadwireguard-openbsd-1d98f34286583175a9e4ff0c843e33e6e9f2db6e.tar.xz
wireguard-openbsd-1d98f34286583175a9e4ff0c843e33e6e9f2db6e.zip
Use ${SUDO} or skip test if not root.
-rw-r--r--regress/sys/netinet/autoport/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/sys/netinet/autoport/Makefile b/regress/sys/netinet/autoport/Makefile
index 5c6abfadb95..bdd1d06b3f5 100644
--- a/regress/sys/netinet/autoport/Makefile
+++ b/regress/sys/netinet/autoport/Makefile
@@ -1,11 +1,11 @@
-# $OpenBSD: Makefile,v 1.2 2015/10/14 13:17:33 vgross Exp $
+# $OpenBSD: Makefile,v 1.3 2020/12/17 14:06:42 bluhm Exp $
DIR= ${.CURDIR}/../../netinet6/autoport
REGRESS_TARGETS= run-regress-autoport
-REGRESS_ROOT_TARGETS= $(REGRESS_TARGETS)
+REGRESS_ROOT_TARGETS= ${REGRESS_TARGETS}
run-regress-autoport:
- /usr/bin/perl $(DIR)/autoport.pl 4 30000 31000 64
+ ${SUDO} /usr/bin/perl ${DIR}/autoport.pl 4 30000 31000 64
.include <bsd.regress.mk>