From 5365e1b81bb58425b3ac9f6234f01a381ea026ac Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Thu, 13 Jun 2013 06:22:14 -0400 Subject: Collect logs from tests After each test, and after class setups and teardowns, the BeakerLib integration plugin now downloads log files from the remote masters and submits them using rlFileSubmit. Part of the work for: https://fedorahosted.org/freeipa/ticket/3621 --- ipatests/test_integration/base.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ipatests/test_integration/base.py') diff --git a/ipatests/test_integration/base.py b/ipatests/test_integration/base.py index 8e1b5bdc..131db89d 100644 --- a/ipatests/test_integration/base.py +++ b/ipatests/test_integration/base.py @@ -98,17 +98,19 @@ class IntegrationTest(object): try: cls.uninstall() finally: - del cls.logs_to_collect del cls.master del cls.replicas del cls.clients @classmethod def uninstall(cls): + cls.collect_log(cls.master, '/var/log/ipaserver-uninstall.log') cls.master.run_command(['ipa-server-install', '--uninstall', '-U']) for replica in cls.replicas: + cls.collect_log(replica, '/var/log/ipaserver-uninstall.log') replica.run_command(['ipa-server-install', '--uninstall', '-U']) for client in cls.clients: + cls.collect_log(replica, '/var/log/ipaclient-uninstall.log') client.run_command(['ipa-client-install', '--uninstall', '-U']) @classmethod -- cgit