Source-Changes-HG archive

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

[src/trunk]: src/tests/net/net Ignore case in deprecated



details:   https://anonhg.NetBSD.org/src/rev/e457c9905ee1
branches:  trunk
changeset: 817910:e457c9905ee1
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Fri Sep 16 00:44:14 2016 +0000

description:
Ignore case in deprecated

diffstat:

 tests/net/net/t_ipv6_lifetime.sh |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (36 lines):

diff -r 6310fef959ee -r e457c9905ee1 tests/net/net/t_ipv6_lifetime.sh
--- a/tests/net/net/t_ipv6_lifetime.sh  Fri Sep 16 00:14:33 2016 +0000
+++ b/tests/net/net/t_ipv6_lifetime.sh  Fri Sep 16 00:44:14 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_ipv6_lifetime.sh,v 1.2 2016/08/10 21:33:52 kre Exp $
+#      $NetBSD: t_ipv6_lifetime.sh,v 1.3 2016/09/16 00:44:14 ozaki-r Exp $
 #
 # Copyright (c) 2015 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -33,6 +33,8 @@
 
 DEBUG=false
 
+deprecated="[Dd][Ee][Pp][Rr][Ee][Cc][Aa][Tt][Ee][Dd]"
+
 atf_test_case basic cleanup
 
 basic_head()
@@ -69,7 +71,7 @@
        atf_check -s exit:0 sleep $(($time + $bonus))
        $DEBUG && rump.ifconfig -L shmif0
        # Should remain but marked as deprecated
-       atf_check -s exit:0 -o match:'deprecated' rump.ifconfig -L shmif0
+       atf_check -s exit:0 -o match:"$ip.+$deprecated" rump.ifconfig -L shmif0
        atf_check -s exit:0 rump.ifconfig shmif0 inet6 $ip delete
 
        # Setting only a valid lifetime (invalid)
@@ -96,7 +98,7 @@
        atf_check -s exit:0 sleep $(($time + $bonus))
        $DEBUG && rump.ifconfig -L shmif0
        # Should remain but marked as deprecated
-       atf_check -s exit:0 -o match:'deprecated' rump.ifconfig -L shmif0
+       atf_check -s exit:0 -o match:"$ip.+$deprecated" rump.ifconfig -L shmif0
        atf_check -s exit:0 sleep $(($time + $bonus))
        $DEBUG && rump.ifconfig -L shmif0
        # Shouldn't remain anymore



Home | Main Index | Thread Index | Old Index