os-autoinst-distri-rocky-mi.../tests/disk_guided_delete_partial_postinstall.pm

26 lines
737 B
Perl
Raw Normal View History

2015-02-13 08:51:24 +00:00
use base "basetest";
use strict;
use testapi;
sub run {
assert_screen "root_logged_in";
type_string 'reset; mount /dev/vda2 /mnt; echo $?'; # if you use doublequotes, $? gets replaced by Perl with last error code
2015-02-13 08:51:24 +00:00
send_key "ret";
assert_screen "console_command_success";
type_string 'reset; cat /mnt/testfile';
2015-02-13 08:51:24 +00:00
send_key "ret";
2015-02-13 11:11:47 +00:00
assert_screen "provided_second_partition_intact";
2015-02-13 08:51:24 +00:00
}
sub test_flags {
# without anything - rollback to 'lastgood' snapshot if failed
# 'fatal' - whole test suite is in danger if this fails
# 'milestone' - after this test succeeds, update 'lastgood'
# 'important' - if this fails, set the overall state to 'fail'
return { fatal => 1 };
}
1;
# vim: set sw=4 et: