os-autoinst-distri-rocky-mi.../tests/preinstall_iso_in_hd.pm
Guy Menanteau 29070a54f1 New install_repository_hd_variation
use a new PREINSTALL to execute a rescue script before install.

This is covering the  Hard_drive_variation test as per:
https://fedoraproject.org/wiki/QA:Testcase_install_repository_Hard_drive_variation

Signed-off-by: Guy Menanteau <menantea@linux.vnet.ibm.com>
2019-04-12 15:49:54 -07:00

27 lines
598 B
Perl

use base "anacondatest";
use strict;
use testapi;
use utils;
sub run {
select_rescue_mode;
# select rescue shell and expect shell prompt
type_string "3\n";
send_key "ret";
assert_screen "rescue_shell_prompt", 5; # should be shell prompt
assert_script_run "fdisk -l | head -n20";
assert_script_run "mkdir -p /hd";
assert_script_run "mount /dev/vdb1 /hd";
copy_devcdrom_as_isofile('/hd/fedora_image.iso');
assert_script_run "umount /hd";
type_string "exit\n"; # leave rescue mode.
}
sub test_flags {
return { fatal => 1 };
}
1;
# vim: set sw=4 et: