Make sure that the disk post installs run in a shell

it happens that the previous test ends in the GUI
This commit is contained in:
lumarel 2021-11-10 17:21:43 +01:00
parent d307716472
commit af677c8f9c
4 changed files with 20 additions and 0 deletions

View File

@ -1,8 +1,13 @@
use base "installedtest";
use strict;
use testapi;
use utils;
sub run {
my $self = shift;
unless (check_screen "root_console", 0) {
$self->root_console(tty=>4);
}
assert_screen "root_console";
my $devboot = 'vda1';

View File

@ -1,8 +1,13 @@
use base "installedtest";
use strict;
use testapi;
use utils;
sub run {
my $self = shift;
unless (check_screen "root_console", 0) {
$self->root_console(tty=>4);
}
assert_screen "root_console";
# check that lvmthinpool is present:
# http://atodorov.org/blog/2015/04/14/how-to-find-if-lvm-volume-is-thinly-provisioned/

View File

@ -1,8 +1,13 @@
use base "installedtest";
use strict;
use testapi;
use utils;
sub run {
my $self = shift;
unless (check_screen "root_console", 0) {
$self->root_console(tty=>4);
}
assert_screen "root_console";
# check that RAID is used
assert_script_run "cat /proc/mdstat | grep 'Personalities : \\\[raid1\\\]'";

View File

@ -1,8 +1,13 @@
use base "installedtest";
use strict;
use testapi;
use utils;
sub run {
my $self = shift;
unless (check_screen "root_console", 0) {
$self->root_console(tty=>4);
}
assert_screen "root_console";
my $count = 4;
my $devroot = 'vda1';