preload#
- preload(arg: str, *, when: str | dict[str, str] | None = None, source: bool = False) None#
Load shell shell script before test execution
Usage#
.pyt:import canary canary.directives.preload(arg, *, when=..., source=False):
.vvt:# VVT: preload (options=..., platforms=..., testname=...) : [source-script] script_nameWarning
The
preloadcurrently has no effect. Usecanary.shell.sourceinstead, see Sourcing rc scripts during test execution.