From c342345d2d26aaf9581eb42b18cd84aebd5f72cf Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 12 Jan 2023 14:15:38 -0800 Subject: [PATCH] ifconfig.test: small fixes. Android's modprobe outputs help to stdout when no modules directory is given, but we have the dummy module anyway. Unfortunately, there's a missing line continuation character in the first test. The tests run and pass on Android with this change. --- tests/ifconfig.test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ifconfig.test b/tests/ifconfig.test index 107c4d9e..dcecc16f 100755 --- a/tests/ifconfig.test +++ b/tests/ifconfig.test @@ -31,7 +31,7 @@ then fi # Add a dummy interface to test with -modprobe dummy 2>/dev/null +modprobe dummy >/dev/null 2>&1 if ! ifconfig dummy0 up 2>/dev/null then echo "$SHOWSKIP: ifconfig dummy0 up failed" @@ -40,7 +40,7 @@ then fi # Results Expected: After calling ifconfig, no lines with dummy0 are displayed -testing "Disable the dummy0 interface" +testing "Disable the dummy0 interface" \ "ifconfig dummy0 down && ifconfig | grep dummy | wc -l" "0\n" "" "" # Results Expected: After calling ifconfig, one line with dummy0 is displayed -- 2.39.2