mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2025-02-22 07:04:31 +00:00
33 lines
693 B
Perl
33 lines
693 B
Perl
use base "installedtest";
|
|
use strict;
|
|
use testapi;
|
|
use utils;
|
|
use pikvm;
|
|
|
|
# This script downloads the preselected ISO image
|
|
# and attaches it to the drive and starts the
|
|
# target computer.
|
|
|
|
sub run {
|
|
my $self = shift;
|
|
my $isolink = get_var("DOWNLOAD");
|
|
my $system = get_var("SUBVARIANT");
|
|
my $drive = get_var("USBDRIVE");
|
|
|
|
# Download the selectected ISO from the $isolink
|
|
# and upload it to the PiKVM drive.
|
|
upload_iso_file($isolink, $system);
|
|
# Attach it to the PiKVM as $drive.
|
|
attach_iso_file($system, $drive);
|
|
# Switch output to mpeg
|
|
select_stream("mpeg");
|
|
}
|
|
|
|
sub test_flags {
|
|
return {fatal => 1, milestone => 1};
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|