1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-09 09:04:20 +00:00
os-autoinst-distri-fedora/tests/disk_guided_multi_postinstall.pm
Guy Menanteau 9c8a4949fa Modify "install_multi" test for PowerPC
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>
2017-09-06 08:43:04 +02:00

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: