os-autoinst-distri-rocky/tests/modularity_install_module.pm

23 lines
549 B
Perl
Raw 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);
# Download the testing script
download_modularity_tests();
# Check that modularity works and that a particular module is available in the system.
2019-07-03 08:42:33 +00:00
assert_script_run('/root/test.py -m nodejs -s 11 -a list');
# Check that module can be enabled and removed.
2019-07-03 08:42:33 +00:00
assert_script_run('/root/test.py -m nodejs -s 11 -a install,remove -f hard');
}
1;
# vim: set sw=4 et: