os-autoinst-distri-rocky/tests/disk_guided_delete_partial_postinstall.pm
Jan Sedlák ec6b3ff4a3 use validate_script_output instead of typing and needles matching
Use validate_script_output and regex matching instead
of type_string and needles.

Differential Revision: https://phab.qadevel.cloud.fedoraproject.org/D637
2015-11-04 14:38:36 +01:00

23 lines
642 B
Perl

use base "installedtest";
use strict;
use testapi;
sub run {
assert_screen "root_console";
# mount second partition and check that it's intact
validate_script_output 'mount /dev/vda2 /mnt; echo $?', sub { $_ =~ m/0/ };
validate_script_output 'cat /mnt/testfile', sub { $_ =~ m/Oh, hi Mark/ };
}
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: