support/testing: test_weston.py: use assertRunNotOk()

Use the helper to simplify the test.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
(cherry picked from commit 8ffa090560)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
Peter Korsgaard
2026-06-18 14:48:19 +02:00
committed by Thomas Perale
parent 33866bc42c
commit 44001e3e87

View File

@@ -150,5 +150,4 @@ class TestWeston(infra.basetest.BRTest, GraphicsBase):
# Now weston is supposed to be stopped,
# a simple client is expected to fail.
_, exit_code = self.emulator.run("wayland-info")
self.assertNotEqual(exit_code, 0)
self.assertRunNotOk("wayland-info")