1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-22 14:03:09 +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 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
upload_logs "/etc/nsswitch.conf", failok=>1;

View File

@ -9,9 +9,6 @@ sub run {
# Test if modules have default stream and profile defined.
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 {

View File

@ -15,8 +15,6 @@ sub run {
# 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');
# Upload the modular log file.
upload_logs '/root/modularity/modular.log', failok=>1;
}
sub test_flags {

View File

@ -12,9 +12,6 @@ sub run {
# 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');
# Upload modular logs
upload_logs '/root/modularity/modular.log', failok=>1;
}
sub test_flags {