diff options
author | K900 <me@0upti.me> | 2024-01-26 16:27:53 +0300 |
---|---|---|
committer | K900 <me@0upti.me> | 2024-01-26 16:27:53 +0300 |
commit | 07e7fcc46fcedf1f63c68c33a3b68ef521ebe2cf (patch) | |
tree | 53ecd00ca3496b3ce2884edeab064cb8aff03a5c /nixos/lib | |
parent | e78f177a8a7a79d6c7e1fcfe509901e87658ec63 (diff) |
nixos/test-driver: black
Diffstat (limited to 'nixos/lib')
-rw-r--r-- | nixos/lib/test-driver/test_driver/machine.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nixos/lib/test-driver/test_driver/machine.py b/nixos/lib/test-driver/test_driver/machine.py index f526325b8a2c3..93411a4a348e1 100644 --- a/nixos/lib/test-driver/test_driver/machine.py +++ b/nixos/lib/test-driver/test_driver/machine.py @@ -768,7 +768,9 @@ class Machine: self.booted = False self.connected = False - def wait_for_qmp_event(self, event_filter: Callable[[dict[str, Any]], bool], timeout: int = 60 * 10) -> dict[str, Any]: + def wait_for_qmp_event( + self, event_filter: Callable[[dict[str, Any]], bool], timeout: int = 60 * 10 + ) -> dict[str, Any]: """ Wait for a QMP event which you can filter with the `event_filter` function. The function takes as an input a dictionary of the event and if it returns True, we return that event, @@ -780,7 +782,7 @@ class Machine: By default, it will wait up to 10 minutes, `timeout` is in seconds. """ if self.qmp_client is None: - raise RuntimeError('QMP API is not ready yet, is the VM ready?') + raise RuntimeError("QMP API is not ready yet, is the VM ready?") start = time.time() while True: |