2015-09-08 13:54:22 +00:00
|
|
|
use base "installedtest";
|
|
|
|
use strict;
|
|
|
|
use testapi;
|
|
|
|
|
|
|
|
sub run {
|
|
|
|
assert_screen "root_console";
|
|
|
|
# mount first partition and check that it's intact
|
2016-01-12 17:27:14 +00:00
|
|
|
assert_script_run 'mount /dev/vda1 /mnt';
|
2015-11-04 13:38:36 +00:00
|
|
|
validate_script_output 'cat /mnt/testfile', sub { $_ =~ m/Hello, world!/ };
|
2015-09-08 13:54:22 +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:
|