summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorSilvan Mosberger <contact@infinisil.com>2020-04-06 23:54:18 +0200
committerSilvan Mosberger <contact@infinisil.com>2020-04-06 23:55:04 +0200
commit85e866db6f0a3cfd47666af49cdfeefcffbce0c9 (patch)
tree8a02971b8355c4d7b94d2e5ffa7b5c7e7974816d /nixos
parent5d3f4e9c0b9c3ccfbd48e5b472ad064215fd4a28 (diff)
downloadnixpkgs-85e866db6f0a3cfd47666af49cdfeefcffbce0c9.tar
nixpkgs-85e866db6f0a3cfd47666af49cdfeefcffbce0c9.tar.gz
nixpkgs-85e866db6f0a3cfd47666af49cdfeefcffbce0c9.tar.bz2
nixpkgs-85e866db6f0a3cfd47666af49cdfeefcffbce0c9.tar.lz
nixpkgs-85e866db6f0a3cfd47666af49cdfeefcffbce0c9.tar.xz
nixpkgs-85e866db6f0a3cfd47666af49cdfeefcffbce0c9.tar.zst
nixpkgs-85e866db6f0a3cfd47666af49cdfeefcffbce0c9.zip
nixos/lib/test-driver: Fix require_unit_state hardcoded formatting
Diffstat (limited to 'nixos')
-rw-r--r--nixos/lib/test-driver/test-driver.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/lib/test-driver/test-driver.py b/nixos/lib/test-driver/test-driver.py
index 744fadb1a4f..07f27515990 100644
--- a/nixos/lib/test-driver/test-driver.py
+++ b/nixos/lib/test-driver/test-driver.py
@@ -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]: