Something went wrong. Try again.
lol
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162# This file contains type hints that can be prepended to Nix test scripts so they can be type# checked.
from test_driver.debug import DebugAbstractfrom test_driver.driver import Driverfrom test_driver.vlan import VLanfrom test_driver.machine import BaseMachine, NspawnMachine, QemuMachinefrom test_driver.logger import AbstractLoggerfrom typing import Callable, Iterator, ContextManager, Optional, List, Dict, Any, Unionfrom typing_extensions import Protocolfrom pathlib import Pathfrom unittest import TestCase
class RetryProtocol(Protocol): def __call__(self, fn: Callable, timeout_seconds: int = 900) -> None: raise Exception("This is just type information for the Nix test driver")
class PollingConditionProtocol(Protocol): def __call__( self, fun_: Optional[Callable] = None, *, seconds_interval: float = 2.0, description: Optional[str] = None, ) -> Union[Callable[[Callable], ContextManager], ContextManager]: raise Exception("This is just type information for the Nix test driver")
class CreateMachineProtocol(Protocol): def __call__( self, start_command: str | dict, *, name: Optional[str] = None, keep_machine_state: bool = False, **kwargs: Any, # to allow usage of deprecated keep_vm_state ) -> QemuMachine: raise Exception("This is just type information for the Nix test driver")
start_all: Callable[[], None]subtest: Callable[[str], ContextManager[None]]retry: RetryProtocoltest_script: Callable[[], None]machines: List[BaseMachine]machines_qemu: List[QemuMachine]machines_nspawn: List[NspawnMachine]vlans: List[VLan]driver: Driverlog: AbstractLoggercreate_machine: CreateMachineProtocolrun_tests: Callable[[], None]join_all: Callable[[], None]serial_stdout_off: Callable[[], None]serial_stdout_on: Callable[[], None]polling_condition: PollingConditionProtocoldebug: DebugAbstractt: TestCasedump_machine_ssh: Callable[[], None]