diff options
| author | Martin Basti <mbasti@redhat.com> | 2016-07-20 17:35:32 +0200 |
|---|---|---|
| committer | Martin Babinsky <mbabinsk@redhat.com> | 2016-07-26 15:34:07 +0200 |
| commit | ae623864ee6e5dc2f6d254111c9cdd369fc144a8 (patch) | |
| tree | fe3969b35a271803c14fbe8ff4f27a1fe881f90b /ipatests/pytest_plugins | |
| parent | f05615bb8308ca493d4d2eee1ea608239e40def9 (diff) | |
CI tests: fix SSSD log collecting
Wildcard '*' has not been working for log collecting. I just set
the whole SSSD log directory to be collected. tar utility is able to
archive whole directories.
Reviewed-By: David Kupka <dkupka@redhat.com>
Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
Diffstat (limited to 'ipatests/pytest_plugins')
| -rw-r--r-- | ipatests/pytest_plugins/integration.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ipatests/pytest_plugins/integration.py b/ipatests/pytest_plugins/integration.py index a191d8486..63d0c9943 100644 --- a/ipatests/pytest_plugins/integration.py +++ b/ipatests/pytest_plugins/integration.py @@ -91,8 +91,9 @@ def collect_logs(name, logs_dict, logfile_dir=None, beakerlib_plugin=None): log.info('Collecting logs from: %s', host.hostname) # Tar up the logs on the remote server - cmd = host.run_command(['tar', 'cJv'] + logs, log_stdout=False, - raiseonerr=False) + cmd = host.run_command( + ['tar', '-c', '--ignore-failed-read', '-J', '-v'] + logs, + log_stdout=False, raiseonerr=False) if cmd.returncode: log.warning('Could not collect all requested logs') |
