3
0
Fork 0
forked from mirrors/nixpkgs

nixos/tests/home-assistant: assert regex match

Fixes type checking done against the test driver.
This commit is contained in:
Martin Weinelt 2022-06-04 02:29:55 +02:00 committed by Robert Schütz
parent 403db8d41c
commit 417419a5c9

View file

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