aboutsummaryrefslogtreecommitdiff
path: root/nixos/lib
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2020-08-25 14:50:47 +0100
committerJörg Thalheim <joerg@thalheim.io>2020-08-25 14:50:47 +0100
commit87214dbd10bea1877b6146520002c22b63c268b9 (patch)
tree726294fc163573950a42187d4cb45d9b6c9f7ff2 /nixos/lib
parentf3c0a09c76db18102028c3f4146f09d36ca6dac2 (diff)
nixos/test-driver: re-introduce log()
Appearantly this is used in tests
Diffstat (limited to 'nixos/lib')
-rw-r--r--nixos/lib/test-driver/test-driver.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/lib/test-driver/test-driver.py b/nixos/lib/test-driver/test-driver.py
index a39bcd1dd300..99c6eb06de3c 100644
--- a/nixos/lib/test-driver/test-driver.py
+++ b/nixos/lib/test-driver/test-driver.py
@@ -320,6 +320,9 @@ class Machine:
+ "'{}' but it is in state ‘{}’".format(require_state, state)
)
+ def log(self, message: str) -> None:
+ self.logger.info(message)
+
def execute(self, command: str) -> Tuple[int, str]:
self.connect()