mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-16 02:01:25 +00:00
1475813b75
* Add test to check module defaults. * Add whitelist download. * Fix install test to include selected profile to be on the safe side. * Add test into templates.
28 lines
703 B
Perl
28 lines
703 B
Perl
use base "installedtest";
|
|
use strict;
|
|
use testapi;
|
|
use utils;
|
|
sub run {
|
|
my $self=shift;
|
|
my $hook_run = 0;
|
|
# switch to tty and login as root
|
|
$self->root_console(tty=>3);
|
|
|
|
# Download the testing script
|
|
download_modularity_tests();
|
|
|
|
# Check that modularity works, that a particular module is available in the system,
|
|
# and display information about that module.
|
|
assert_script_run('/root/test.py -m dwm -s 6.1 -a list');
|
|
|
|
# Check that module can be enabled and disabled.
|
|
assert_script_run('/root/test.py -m dwm -s 6.1 -a enable,disable -f hard');
|
|
|
|
# Upload the modular log file.
|
|
upload_logs '/root/modular.log', failok=>1;
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|