2019-02-04 14:46:31 +00:00
|
|
|
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";
|
2023-02-12 22:59:37 +00:00
|
|
|
assert_screen "root_console", 5; # should be shell prompt
|
2019-02-04 14:46:31 +00:00
|
|
|
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";
|
2023-02-12 22:59:37 +00:00
|
|
|
type_string "exit\n"; # leave rescue mode.
|
2019-02-04 14:46:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sub test_flags {
|
2023-02-12 22:59:37 +00:00
|
|
|
return {fatal => 1};
|
2019-02-04 14:46:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
1;
|
|
|
|
|
|
|
|
# vim: set sw=4 et:
|