mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-12-20 09:58:28 +00:00
9c8a4949fa
PowerPC arches have the empty disk automatically mounted on the second position in anaconda (vdb). Thus, trig installation on second disk. Change disk checking to point on correct disk. Warning: this is a workaround specific correction addressing a specific case. This will have to be improved/changed with a more generic code as suggested by Adam Williamson in https://pagure.io/fedora-qa/os-autoinst-distri-fedora/pull-request/1#comment-31858 proposal for a next commit :) Signed-off-by: Guy Menanteau <menantea@linux.vnet.ibm.com> Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
25 lines
526 B
Perl
25 lines
526 B
Perl
use base "installedtest";
|
|
use strict;
|
|
use testapi;
|
|
|
|
sub run {
|
|
assert_screen "root_console";
|
|
# check that second disk is intact
|
|
if (get_var('OFW')) {
|
|
# on PowerPC, installation disk is second disk (vdb)
|
|
# so need to check vda
|
|
assert_script_run 'mount /dev/vda1 /mnt';
|
|
} else {
|
|
assert_script_run 'mount /dev/vdb1 /mnt';
|
|
}
|
|
validate_script_output 'cat /mnt/testfile', sub { $_ =~ m/Hello, world!/ };
|
|
}
|
|
|
|
sub test_flags {
|
|
return { fatal => 1 };
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|