about summary refs log tree commit diff
path: root/nixos/lib/test-script-prepend.py
diff options
context:
space:
mode:
authorStefan Hertrampf <stefan.hertrampf@cyberus-technology.de>2024-04-08 16:17:06 +0200
committerStefan Hertrampf <stefan.hertrampf@cyberus-technology.de>2024-05-07 15:17:16 +0200
commit9d90df51a9cdfaee321216997a0413c85672545f (patch)
treeabaf09b1b971811c0ffb98440ac9bb9cb762f1f7 /nixos/lib/test-script-prepend.py
parentb505db6f6df1f67ba437e60d7070a8f6698f6113 (diff)
nixos/test-driver: Separate XML and Terminal log
We use the newly AbstractLogger class and separate the XML and Terminal
logging that is currently mixed into one class. We restore the old
behavior by introducing a CompositeLogger that takes care of logging
both to terminal and XML.
Diffstat (limited to 'nixos/lib/test-script-prepend.py')
-rw-r--r--nixos/lib/test-script-prepend.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/lib/test-script-prepend.py b/nixos/lib/test-script-prepend.py
index 976992ea00158..9d2efdf973031 100644
--- a/nixos/lib/test-script-prepend.py
+++ b/nixos/lib/test-script-prepend.py
@@ -4,7 +4,7 @@
 from test_driver.driver import Driver
 from test_driver.vlan import VLan
 from test_driver.machine import Machine
-from test_driver.logger import Logger
+from test_driver.logger import AbstractLogger
 from typing import Callable, Iterator, ContextManager, Optional, List, Dict, Any, Union
 from typing_extensions import Protocol
 from pathlib import Path
@@ -44,7 +44,7 @@ test_script: Callable[[], None]
 machines: List[Machine]
 vlans: List[VLan]
 driver: Driver
-log: Logger
+log: AbstractLogger
 create_machine: CreateMachineProtocol
 run_tests: Callable[[], None]
 join_all: Callable[[], None]