From 4028f1aebb460eb4f81eabd31e7621b026c4aa9d Mon Sep 17 00:00:00 2001 From: Tomas Krizek Date: Aug 31 2017 11:41:27 +0000 Subject: ipatests: collect log after ipa-ca-install Make sure logs are collected after calling ipa-ca-install command. Related: https://pagure.io/freeipa/issue/7060 Signed-off-by: Tomas Krizek Reviewed-By: Stanislav Laznicka --- diff --git a/ipatests/pytest_plugins/integration/tasks.py b/ipatests/pytest_plugins/integration/tasks.py index 6038e08..9d3955d 100644 --- a/ipatests/pytest_plugins/integration/tasks.py +++ b/ipatests/pytest_plugins/integration/tasks.py @@ -1176,7 +1176,9 @@ def install_ca(host, domain_level=None, first_instance=False, raiseonerr=True): if domain_level == DOMAIN_LEVEL_0 and not first_instance: replica_file = get_replica_filename(host) command.append(replica_file) - return host.run_command(command, raiseonerr=raiseonerr) + result = host.run_command(command, raiseonerr=raiseonerr) + setup_server_logs_collecting(host) + return result def install_dns(host, raiseonerr=True):