mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-14 02:34:21 +00:00
23 lines
547 B
Perl
23 lines
547 B
Perl
|
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.
|
||
|
assert_script_run('/root/test.py -m nodejs -s 8 -a list');
|
||
|
|
||
|
# Check that module can be enabled and removed.
|
||
|
assert_script_run('/root/test.py -m nodejs -s 8 -a install,remove -f hard');
|
||
|
}
|
||
|
|
||
|
1;
|
||
|
|
||
|
# vim: set sw=4 et:
|