2015-01-27 15:24:12 +00:00
|
|
|
use base "basetest";
|
|
|
|
use strict;
|
|
|
|
use testapi;
|
|
|
|
|
|
|
|
sub run {
|
|
|
|
assert_screen "root_logged_in";
|
2015-03-13 11:58:03 +00:00
|
|
|
type_string 'reset; mount /dev/sdb1 /mnt; echo $?'; # if you use doublequotes, $? gets replaced by Perl with last error code
|
2015-01-27 15:24:12 +00:00
|
|
|
send_key "ret";
|
|
|
|
assert_screen "console_command_success";
|
2015-03-13 11:58:03 +00:00
|
|
|
type_string 'reset; cat /mnt/testfile';
|
2015-01-27 15:24:12 +00:00
|
|
|
send_key "ret";
|
|
|
|
assert_screen "provided_disk_intact";
|
|
|
|
}
|
|
|
|
|
|
|
|
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'
|
2015-01-28 12:42:34 +00:00
|
|
|
return { fatal => 1 };
|
2015-01-27 15:24:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
1;
|
|
|
|
|
|
|
|
# vim: set sw=4 et:
|