Source-Changes-HG archive

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

[src/trunk]: src/tests/sbin/ifconfig Ups. Fix shell parameter.



details:   https://anonhg.NetBSD.org/src/rev/161c781a065f
branches:  trunk
changeset: 973336:161c781a065f
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Sat Jun 27 14:04:17 2020 +0000

description:
Ups. Fix shell parameter.

diffstat:

 tests/sbin/ifconfig/t_random_garbage.sh |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r 3860a5e4d4bf -r 161c781a065f tests/sbin/ifconfig/t_random_garbage.sh
--- a/tests/sbin/ifconfig/t_random_garbage.sh   Sat Jun 27 14:03:39 2020 +0000
+++ b/tests/sbin/ifconfig/t_random_garbage.sh   Sat Jun 27 14:04:17 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_random_garbage.sh,v 1.1 2020/06/27 13:53:43 jruoho Exp $
+# $NetBSD: t_random_garbage.sh,v 1.2 2020/06/27 14:04:17 jruoho Exp $
 #
 # Copyright (c) 2020 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -38,10 +38,10 @@
 write_garbage() {
        val=$(getrint)
        echo "Test $3: write to $1 opt $2 -> $val"
-       ifconfig $1 $opt $val >/dev/null 2>&1
+       ifconfig $1 $2 $val >/dev/null 2>&1
        val=$(getrstr)
        echo "Test $3: write to $1 opt $2 -> $val"
-       ifconfig $1 $opt $val >/dev/null 2>&1
+       ifconfig $1 $2 $val >/dev/null 2>&1
 }
 
 atf_test_case random_garbage



Home | Main Index | Thread Index | Old Index