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

Use the helper to simplify the test.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Peter Korsgaard
2026-06-18 14:48:19 +02:00
parent 6e04f8f21f
commit 8ffa090560

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