1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-25 15:23:08 +00:00

Update logs even if script fails.

This commit is contained in:
Lukas Ruzicka 2019-07-26 15:38:54 +02:00
parent bb445bb728
commit a1cfc854ca
4 changed files with 8 additions and 11 deletions

View File

@ -108,6 +108,11 @@ sub post_fail_hook {
upload_logs "/tmp/var_log.tar.gz"; upload_logs "/tmp/var_log.tar.gz";
} }
# Upload Modularity logs, if they exist. They never will unless modularity is tested.
unless (script_run 'test "$(ls /root/modularity/modular.log)"') {
upload_logs "/root/modularity/modular.log", failok=>1;
}
# Sometimes useful for diagnosing FreeIPA issues # Sometimes useful for diagnosing FreeIPA issues
upload_logs "/etc/nsswitch.conf", failok=>1; upload_logs "/etc/nsswitch.conf", failok=>1;

View File

@ -8,10 +8,7 @@ sub run {
$self->root_console(tty=>3); $self->root_console(tty=>3);
# Test if modules have default stream and profile defined. # Test if modules have default stream and profile defined.
assert_script_run('/root/modularity/modular_functions.py -a checkdefaults -w whitelist'); assert_script_run('/root/modularity/modular_functions.py -a checkdefaults -w whitelist');
# Upload modular logs
upload_logs '/root/modularity/modular.log', failok=>1;
} }
sub test_flags { sub test_flags {

View File

@ -13,10 +13,8 @@ sub run {
assert_script_run('/root/modularity/modular_functions.py -m dwm -s 6.1 -a list'); assert_script_run('/root/modularity/modular_functions.py -m dwm -s 6.1 -a list');
# Check that module can be enabled and disabled. # Check that module can be enabled and disabled.
assert_script_run('/root/modularity/modular_functions.py -m dwm -s 6.1 -a enable,disable -f hard'); assert_script_run('/root/modularity/modular_functions.py -m dwm -s 6.1 -a enable,disable -f hard');
# Upload the modular log file.
upload_logs '/root/modularity/modular.log', failok=>1;
} }
sub test_flags { sub test_flags {

View File

@ -12,9 +12,6 @@ sub run {
# Check that module can be enabled and removed. # 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'); assert_script_run('/root/modularity/modular_functions.py -m nodejs -s 11 -p default -a install,remove,reset -f hard');
# Upload modular logs
upload_logs '/root/modularity/modular.log', failok=>1;
} }
sub test_flags { sub test_flags {