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_testyaml.pm
2019-07-31 15:01:56 +02:00

24 lines
517 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);
# Install python3-yaml for yaml parsing.
assert_script_run('dnf install -y python3-yaml');
# Test if modules have corresponding yaml defaults files and that they are .
assert_script_run('/root/modularity/modular_functions.py -a testyaml -w whitelist');
}
sub test_flags {
return {always_rollback => 1};
}
1;
# vim: set sw=4 et: