summaryrefslogtreecommitdiffstats
path: root/ipatests/test_integration/tasks.py
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2013-06-25 12:29:25 +0200
committerPetr Viktorin <pviktori@redhat.com>2013-07-15 15:49:14 +0200
commitc47f3154be16a096b2d255c654e2277954b14833 (patch)
tree8476fce00eabfd52576acde8d3ec899aea6dbd15 /ipatests/test_integration/tasks.py
parent19a0d51d89b640c04dc285067fc59b4a7fe9ca7f (diff)
downloadfreeipa-c47f3154be16a096b2d255c654e2277954b14833.tar.gz
freeipa-c47f3154be16a096b2d255c654e2277954b14833.tar.xz
freeipa-c47f3154be16a096b2d255c654e2277954b14833.zip
Make BeakerLib logging less verbose
Logs from Beaker jobs are normally very brief, with the standard output/error containing detailed information. Make ipa-run-tests with BeakerLib plugin follow this convention. Only include INFO and higher level messages in the Beaker logs. Downgrade several message levels to DEBUG. Log to console using Python logging instead of showing the Beaker logs. Since ipa-run-tests sets up its own logging, Nose's own log handling just causes duplicate messages. Disable it with --nologcapture.
Diffstat (limited to 'ipatests/test_integration/tasks.py')
-rw-r--r--ipatests/test_integration/tasks.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ipatests/test_integration/tasks.py b/ipatests/test_integration/tasks.py
index d131e4df6..ecefdab70 100644
--- a/ipatests/test_integration/tasks.py
+++ b/ipatests/test_integration/tasks.py
@@ -64,7 +64,7 @@ def fix_etc_hosts(host):
flags=re.MULTILINE)
# Add the host's info again
contents += '\n%s %s %s\n' % (host.ip, host.hostname, host.shortname)
- log.info('Writing the following to /etc/hosts:\n%s', contents)
+ log.debug('Writing the following to /etc/hosts:\n%s', contents)
host.put_file_contents('/etc/hosts', contents)
@@ -85,7 +85,7 @@ def fix_resolv_conf(host):
if other_host.role in ('master', 'replica'):
lines.append('nameserver %s' % other_host.ip)
contents = '\n'.join(lines)
- log.info('Writing the following to /etc/resolv.conf:\n%s', contents)
+ log.debug('Writing the following to /etc/resolv.conf:\n%s', contents)
host.put_file_contents('/etc/resolv.conf', contents)
@@ -109,7 +109,7 @@ def restore_hostname(host):
try:
hostname = host.get_file_contents(backupname)
except IOError:
- log.info('No hostname backed up on %s' % host.hostname)
+ log.debug('No hostname backed up on %s' % host.hostname)
else:
host.run_command(['hostname', hostname.strip()])
host.run_command(['rm', backupname])