1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-22 22:13:08 +00:00
os-autoinst-distri-fedora/tests/applications/disks/mount_partitions.pm

39 lines
714 B
Perl
Raw Permalink Normal View History

2023-01-04 14:01:36 +00:00
use base "installedtest";
use strict;
use testapi;
use utils;
use disks;
# This script will test if current partitions can be mounted
# via the Disks application.
sub run {
my $self = shift;
# Wipe the entire disk, recreate partitions
wipe_disk();
add_partitions();
# Mount the first partition.
mount_partition("one");
# Mount the second partition.
mount_partition("two");
# Check in the system that the partitions have been mounted.
$self->root_console(tty => 3);
# First partition
assert_script_run("findmnt /dev/loop0p1");
# Second partition
assert_script_run("findmnt /dev/loop0p2");
}
sub test_flags {
return {always_rollback => 1};
}
1;