Skip to content

Commit

Permalink
Pull up following revision(s) (requested by rin in ticket #422):
Browse files Browse the repository at this point in the history
	tests/sbin/ifconfig/t_capabilities.sh: revision 1.2
	tests/sbin/ifconfig/t_capabilities.sh: revision 1.3

ifconfig/t_capabilities: Skip unless run_unsafe is configured to yes

The test modifies if_capabilities for all available interfaces.
This is not a behavior we expect for normal ATF runs.

Similar tests modifying living network configurations are already
skipped by default. This is the last one remained for ifconfig(8).
Also, I'm not sure whether this is a test for ifconfig(8).

ifconfig/t_capabilities: s/if_capabilities/if_capenable/ in message
  • Loading branch information
MartinHusemann committed Oct 18, 2023
1 parent 0e261ed commit 3b07e27
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/sbin/ifconfig/t_capabilities.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: t_capabilities.sh,v 1.1 2020/06/27 06:57:44 jruoho Exp $
# $NetBSD: t_capabilities.sh,v 1.1.6.1 2023/10/18 14:48:44 martin Exp $
#
# Copyright (c) 2020 The NetBSD Foundation, Inc.
# All rights reserved.
Expand Down Expand Up @@ -111,6 +111,10 @@ basic_head() {

basic_body() {

if ! [ $(atf_config_get "run_unsafe" "no") = "yes" ]; then
atf_skip "modify if_capenable for real interfaces"
fi

for i in $(ifconfig -l); do

c=$(ifconfig $i | grep "capabilities")
Expand Down

0 comments on commit 3b07e27

Please sign in to comment.