1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-22 14:03:09 +00:00
os-autoinst-distri-fedora/tests/modularity_install_module.pm

24 lines
591 B
Perl
Raw Permalink Normal View History

use base "installedtest";
use strict;
use testapi;
use utils;
sub run {
my $self=shift;
# switch to tty and login as root
$self->root_console(tty=>3);
# Check that modularity works and that a particular module is available in the system.
assert_script_run('/root/modularity/modular_functions.py -s 11 -a list');
# Check that module can be enabled and removed.
assert_script_run('/root/modularity/modular_functions.py -m nodejs -s 11 -p default -a install,remove,reset -f hard');
}
sub test_flags {
return {always_rollback => 1};
}
1;
# vim: set sw=4 et: