From 52e10d029f7cc7573f55b63dc435e706c021d72d Mon Sep 17 00:00:00 2001 From: Benjamin Tissoires Date: Thu, 14 Sep 2017 10:38:51 +0200 Subject: [PATCH] tools: ratbagctl.test: assert on the ratbagd process If we could not start the process, there is a high chance we are running the tests against a different ratbagd implementation so there is no point. Also, an exception will get raised later during the tear down of the module saying that "'NoneType' object has no attribute 'terminate'". This is less than ideal to notify that the process has not been started. Signed-off-by: Benjamin Tissoires --- tools/ratbagctl.test.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/ratbagctl.test.in b/tools/ratbagctl.test.in index fb2c57c2..e929efd0 100755 --- a/tools/ratbagctl.test.in +++ b/tools/ratbagctl.test.in @@ -564,6 +564,8 @@ def setUpModule(): ratbagd_process = toolbox.start_ratbagd() + assert ratbagd_process is not None + ratbagd = toolbox.open_ratbagd(ratbagd_process) assert ratbagd is not None