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_name

Warning

The preload currently has no effect. Use canary.shell.source instead, see Sourcing rc scripts during test execution.