nixos/lib/test-driver: Fix require_unit_state hardcoded formatting

This commit is contained in:
Silvan Mosberger 2020-04-06 23:54:18 +02:00
parent 5d3f4e9c0b
commit 85e866db6f
No known key found for this signature in database
GPG key ID: E8F1E9EAD284E17D

View file

@ -387,7 +387,7 @@ class Machine:
if state != require_state:
raise Exception(
"Expected unit {} to to be in state ".format(unit)
+ "'active' but it is in state {}".format(state)
+ "'{}' but it is in state {}".format(require_state, state)
)
def execute(self, command: str) -> Tuple[int, str]: