about summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2022-06-04 02:29:55 +0200
committerRobert Schütz <github@dotlambda.de>2022-06-03 18:56:11 -0700
commit417419a5c996e451243fa153a9bb50d9651c3687 (patch)
treeafc4ff23b9b6c033d405f0eed383a46e59bff633 /nixos/tests
parent403db8d41c795d5db1bdb7ffe709897114a4907e (diff)
nixos/tests/home-assistant: assert regex match
Fixes type checking done against the test driver.
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/home-assistant.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/tests/home-assistant.nix b/nixos/tests/home-assistant.nix
index 10f9cb05c9cb1..f7b9d283e4572 100644
--- a/nixos/tests/home-assistant.nix
+++ b/nixos/tests/home-assistant.nix
@@ -111,6 +111,7 @@ in {
     pattern = re.compile(r"path=(?P<path>[\/a-z0-9-.]+)\/bin\/hass")
     response = hass.execute("systemctl show -p ExecStart home-assistant.service")[1]
     match = pattern.search(response)
+    assert match
     package = match.group('path')
 
     hass.wait_for_unit("home-assistant.service")