Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/sbin/ifconfig Use atf_pass to avoid test failure in ca...



details:   https://anonhg.NetBSD.org/src/rev/398e44697bbf
branches:  trunk
changeset: 935176:398e44697bbf
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Sat Jun 27 04:15:17 2020 +0000

description:
Use atf_pass to avoid test failure in case there are no suitable interfaces.

diffstat:

 tests/sbin/ifconfig/t_repeated_scan.sh   |  4 +++-
 tests/sbin/ifconfig/t_repeated_updown.sh |  4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diffs (36 lines):

diff -r b30e221ddbd2 -r 398e44697bbf tests/sbin/ifconfig/t_repeated_scan.sh
--- a/tests/sbin/ifconfig/t_repeated_scan.sh    Sat Jun 27 03:25:28 2020 +0000
+++ b/tests/sbin/ifconfig/t_repeated_scan.sh    Sat Jun 27 04:15:17 2020 +0000
@@ -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 @@
 
        /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() {
diff -r b30e221ddbd2 -r 398e44697bbf tests/sbin/ifconfig/t_repeated_updown.sh
--- a/tests/sbin/ifconfig/t_repeated_updown.sh  Sat Jun 27 03:25:28 2020 +0000
+++ b/tests/sbin/ifconfig/t_repeated_updown.sh  Sat Jun 27 04:15:17 2020 +0000
@@ -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 @@
                echo "Restored state of $i to $state"
                sleep 1
        done
+
+       atf_pass
 }
 
 atf_init_test_cases() {



Home | Main Index | Thread Index | Old Index