Module Name:    src
Committed By:   knakahara
Date:           Wed Oct 26 03:55:56 UTC 2016

Modified Files:
        src/tests/net/if_pppoe: t_pppoe.sh

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

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


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/tests/net/if_pppoe/t_pppoe.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/net/if_pppoe/t_pppoe.sh
diff -u src/tests/net/if_pppoe/t_pppoe.sh:1.7 src/tests/net/if_pppoe/t_pppoe.sh:1.8
--- src/tests/net/if_pppoe/t_pppoe.sh:1.7	Wed Oct 26 03:27:24 2016
+++ src/tests/net/if_pppoe/t_pppoe.sh	Wed Oct 26 03:55:56 2016
@@ -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 @@ wait_for_session_established()
 		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 @@ wait_for_disconnected()
 		sleep 1
 	done
 
-	if [ $dontfail != "dontfail" ]; then
+	if [ "$dontfail" != "dontfail" ]; then
 		atf_fail "Couldn't disconnect for $n seconds."
 	fi
 }

Reply via email to