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:
Peter Korsgaard
2026-06-18 14:48:01 +02:00
committed by Thomas Perale
parent 5bccec2779
commit 288b47d79b

View File

@@ -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")