Merge pull request #84517 from Infinisil/fix-test-driver-formatting

nixos/lib/test-driver: Fix require_unit_state hardcoded formatting
This commit is contained in:
Maximilian Bosch
2020-04-07 00:57:45 +02:00
committed by GitHub

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]: