Rest
...data: any[]Optional
message: anyRest
...optionalParams: any[]Rest
...data: any[]Prints to stdout
with newline.
Optional
message: anyRest
...optionalParams: any[]Rest
...data: any[]Prints to stdout
with newline.
Optional
message: anyRest
...optionalParams: any[]Helper to archive the output of a HostOS command stored inside a file.
The name of the directory in which logs will be archived. Usuallly
this value is the name of the test suite (Available in the test using this.id
)
local UUID of the DUT, example:${UUID}.local
The command you need to run and store output for.
Executes the command in the targeted container of a device
The command to be executed, arrays are joined by spaces
The name of the service/container to run the command in
The <UUID.local>
of the target device
output of the command that is executed on the targetted container of the device
Executes command-line operations in the host OS of the DUT. Assuming the DUT is connected to the access point broadcasted by the testbot:
command to be executed on the DUT, arrays are joined by spaces
local UUID of the DUT, example:${UUID}.local
object containing details of how many times the command needs to be retried and the intervals between each command execution
Output of the command that was exected on hostOS of the DUT
const Worker = this.require('common/worker');
const worker = new Worker(DEVICE_TYPE_SLUG, this.getLogger())
await worker.executeCommandInHostOS('cat /etc/hostname', `${UUID}.local`);
await worker.executeCommandInHostOS(
['jq', `'.hostname=${newHostname}'`, '/mnt/boot/config.json'], `${UUID}.local`
);
Pushes a release to an application from a given directory for unmanaged devices
the
The path to the directory containing the docker-compose/Dockerfile for the containers
The name of the container to verify is push has succeeded.
returns state of the device
Prints to
stdout
with newline.