aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-12-03 09:00:31 -0800
committerRob Landley <rob@landley.net>2019-12-04 10:50:51 -0600
commitf7ddbc8a4ce3f6a7c48954c204b9b51c3a2a7e8a (patch)
treee83a406fbae08c7e62a26e0e40173b99627f35a9 /tests
parenta66d839167ae90575bf35f66327e3c138404dbb8 (diff)
downloadtoybox-f7ddbc8a4ce3f6a7c48954c204b9b51c3a2a7e8a.tar.gz
ifconfig.test: deflake.
::2 can legitimately be part of an IPv6 address, causing the test to fail because the grep matches an unrelated part of the output. Be more explicit about what we're actually searching for (as the previous test already was) to avoid flakiness.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/ifconfig.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ifconfig.test b/tests/ifconfig.test
index c189ccaf..631e0888 100755
--- a/tests/ifconfig.test
+++ b/tests/ifconfig.test
@@ -104,14 +104,14 @@ testing "dummy0 mtu 2000" \
# Results Expected: after calling ifconfig dummy0, there is one line with the
# selected ip address
testing "dummy0 add ::2" \
-"ifconfig dummy0 add ::2/126 && ifconfig dummy0 | grep \:\:2\/126 | wc -l" \
+"ifconfig dummy0 add ::2/126 && ifconfig dummy0 | grep \:\:2/126 | wc -l" \
"1\n" "" ""
# Test Description: Verify ifconfig del removes the selected ip6 address
# Results Expected: after calling ifconfig dummy0, there are no lines with the
# selected ip address
testing "dummy0 del ::2" \
-"ifconfig dummy0 del ::2/126 && ifconfig dummy0 | grep \:\:2 | wc -l" \
+"ifconfig dummy0 del ::2/126 && ifconfig dummy0 | grep \:\:2/126 | wc -l" \
"0\n" "" ""
# Test Description: Remove the noarp flag and bring the interface down in