diff options
author | Elliott Hughes <enh@google.com> | 2019-12-03 09:00:31 -0800 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-12-04 10:50:51 -0600 |
commit | f7ddbc8a4ce3f6a7c48954c204b9b51c3a2a7e8a (patch) | |
tree | e83a406fbae08c7e62a26e0e40173b99627f35a9 | |
parent | a66d839167ae90575bf35f66327e3c138404dbb8 (diff) | |
download | toybox-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.
-rwxr-xr-x | tests/ifconfig.test | 4 |
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 |