assert_script_run_container($machine, $script);
Run $script
in the systemd-nspawn container called $machine
.
script_run_container($machine, $script);
Run $script
in the systemd-nspawn container called $machine
.
start_nspawn_container($machine);
Start the systemd-nspawn container called $machine
.
restart_nspawn_container($machine);
Restart the systemd-nspawn container called $machine
.
setup_nspawn_container($machine, $repo, $packages);
Create a chroot for a systemd-nspawn container called $machine
. Use zypper
to add a repo to the chroot and install (with --no-recommends
) the packages listed in $packages
.
write_container_file($machine, $file, $content);
Create a file at path (including filename) $file
within the container called $machine
with the content $content
.
write_file($file, $content);
Helper function to write a file at path (including filename) $file
with the content $content
.
wait_for_networkd($machine, $netif);
Wait until networkd in the container $machine
has configured the network interface $netif
.
export_container_journal($machine);
Get the journal from container $machine
and upload it to openQA. This works without interacting with the container as logs are redirected to the host system journal.
post_fail_hook();
Upload the logs of all known containers.