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

This commit is contained in:
jruoho 2020-06-27 04:15:17 +00:00
parent 31bfec91ea
commit 6232dbeb26
2 changed files with 6 additions and 2 deletions

View File

@ -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() {

View File

@ -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() {