mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-08 00:20:38 -09:00
support/testing: test_fping.py: use assertRunNotOk()
Use the helper to simplify the test.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
(cherry picked from commit 9a1d42e5d4)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
committed by
Thomas Perale
parent
df353e4d2a
commit
0a0e108a58
@@ -41,5 +41,4 @@ class TestFping(infra.basetest.BRTest):
|
||||
self.assertRunOk("ip route add to prohibit 192.168.12.0/24")
|
||||
|
||||
# We expect fping to fail when pinging the prohibited network.
|
||||
_, ret = self.emulator.run("fping 192.168.12.34")
|
||||
self.assertNotEqual(ret, 0)
|
||||
self.assertRunNotOk("fping 192.168.12.34")
|
||||
|
||||
Reference in New Issue
Block a user