Module Name: src
Committed By: jruoho
Date: Sat Jun 27 04:15:17 UTC 2020
Modified Files:
src/tests/sbin/ifconfig: t_repeated_scan.sh t_repeated_updown.sh
Log Message:
Use atf_pass to avoid test failure in case there are no suitable interfaces.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/sbin/ifconfig/t_repeated_scan.sh
cvs rdiff -u -r1.2 -r1.3 src/tests/sbin/ifconfig/t_repeated_updown.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_repeated_scan.sh
diff -u src/tests/sbin/ifconfig/t_repeated_scan.sh:1.4 src/tests/sbin/ifconfig/t_repeated_scan.sh:1.5
--- src/tests/sbin/ifconfig/t_repeated_scan.sh:1.4 Thu Jun 25 11:26:05 2020
+++ src/tests/sbin/ifconfig/t_repeated_scan.sh Sat Jun 27 04:15:17 2020
@@ -1,4 +1,4 @@
-# $NetBSD: t_repeated_scan.sh,v 1.4 2020/06/25 11:26:05 jruoho Exp $
+# $NetBSD: t_repeated_scan.sh,v 1.5 2020/06/27 04:15:17 jruoho Exp $
#
# Copyright (c) 2020 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -81,6 +81,8 @@ repeated_scan_body() {
/bin/sh /etc/rc.d/hostapd restart >/dev/null 2>&1
/bin/sh /etc/rc.d/wpa_supplicant restart >/dev/null 2>&1
+
+ atf_pass
}
atf_init_test_cases() {
Index: src/tests/sbin/ifconfig/t_repeated_updown.sh
diff -u src/tests/sbin/ifconfig/t_repeated_updown.sh:1.2 src/tests/sbin/ifconfig/t_repeated_updown.sh:1.3
--- src/tests/sbin/ifconfig/t_repeated_updown.sh:1.2 Thu Jun 25 16:34:49 2020
+++ src/tests/sbin/ifconfig/t_repeated_updown.sh Sat Jun 27 04:15:17 2020
@@ -1,4 +1,4 @@
-# $NetBSD: t_repeated_updown.sh,v 1.2 2020/06/25 16:34:49 jruoho Exp $
+# $NetBSD: t_repeated_updown.sh,v 1.3 2020/06/27 04:15:17 jruoho Exp $
#
# Copyright (c) 2020 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -63,6 +63,8 @@ repeated_updown_body() {
echo "Restored state of $i to $state"
sleep 1
done
+
+ atf_pass
}
atf_init_test_cases() {