From 4028f1aebb460eb4f81eabd31e7621b026c4aa9d Mon Sep 17 00:00:00 2001 From: Tomas Krizek Date: Thu, 31 Aug 2017 12:37:46 +0200 Subject: [PATCH] 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 --- ipatests/pytest_plugins/integration/tasks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ipatests/pytest_plugins/integration/tasks.py b/ipatests/pytest_plugins/integration/tasks.py index 6038e08ab..9d3955d99 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):