Always upload logs at end of domain_controller test

We often want to see the logs from the FreeIPA deployment test
even if that test passes - to look for some detail that doesn't
cause a test to fail, for instance, or if one of the *client*
tests failed for a reason that involves the server. So, let's
do that.
This commit is contained in:
Adam Williamson 2017-09-05 09:32:33 -07:00
parent 53f0acea50
commit 60913a20e0

View File

@ -25,6 +25,10 @@ sub run {
assert_script_run 'rolectl decommission domaincontroller/domain.local', 300; assert_script_run 'rolectl decommission domaincontroller/domain.local', 300;
# check role is decommissioned # check role is decommissioned
validate_script_output 'rolectl list instances', sub { $_ eq "" }; validate_script_output 'rolectl list instances', sub { $_ eq "" };
# run post-fail hook to upload logs - even when this test passes
# there are often cases where we need to see the logs (e.g. client
# test failed due to server issue)
$self->post_fail_hook();
} }