Source-Changes-HG archive

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

[src/trunk]: src/tests/net/if_pppoe Fix error when wait_for_session_establish...



details:   https://anonhg.NetBSD.org/src/rev/779ae19baabf
branches:  trunk
changeset: 348556:779ae19baabf
user:      knakahara <knakahara%NetBSD.org@localhost>
date:      Wed Oct 26 03:55:56 2016 +0000

description:
Fix error when wait_for_session_established() is called without argument.

>From Shoichi YAMAGUCHI<s-yamaguchi@IIJ>, Thanks.

diffstat:

 tests/net/if_pppoe/t_pppoe.sh |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r be5efd7519cf -r 779ae19baabf tests/net/if_pppoe/t_pppoe.sh
--- a/tests/net/if_pppoe/t_pppoe.sh     Wed Oct 26 03:27:24 2016 +0000
+++ b/tests/net/if_pppoe/t_pppoe.sh     Wed Oct 26 03:55:56 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_pppoe.sh,v 1.7 2016/10/26 03:27:24 knakahara Exp $
+#      $NetBSD: t_pppoe.sh,v 1.8 2016/10/26 03:55:56 knakahara Exp $
 #
 # Copyright (c) 2016 Internet Initiative Japan Inc.
 # All rights reserved.
@@ -102,7 +102,7 @@
                sleep 1
        done
 
-       if [ $dontfail != "dontfail" ]; then
+       if [ "$dontfail" != "dontfail" ]; then
                atf_fail "Couldn't connect to the server for $n seconds."
        fi
 }
@@ -118,7 +118,7 @@
                sleep 1
        done
 
-       if [ $dontfail != "dontfail" ]; then
+       if [ "$dontfail" != "dontfail" ]; then
                atf_fail "Couldn't disconnect for $n seconds."
        fi
 }



Home | Main Index | Thread Index | Old Index