Module Name: src Committed By: martin Date: Wed Oct 18 14:48:44 UTC 2023
Modified Files: src/tests/sbin/ifconfig [netbsd-10]: t_capabilities.sh Log Message: Pull up following revision(s) (requested by rin in ticket #422): 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 To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.1.6.1 src/tests/sbin/ifconfig/t_capabilities.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/sbin/ifconfig/t_capabilities.sh diff -u src/tests/sbin/ifconfig/t_capabilities.sh:1.1 src/tests/sbin/ifconfig/t_capabilities.sh:1.1.6.1 --- src/tests/sbin/ifconfig/t_capabilities.sh:1.1 Sat Jun 27 06:57:44 2020 +++ src/tests/sbin/ifconfig/t_capabilities.sh Wed Oct 18 14:48:44 2023 @@ -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. @@ -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")