summaryrefslogtreecommitdiffstats
path: root/ipatests
diff options
context:
space:
mode:
authorOleg Fayans <ofayans@redhat.com>2016-11-01 09:54:12 +0100
committerMartin Basti <mbasti@redhat.com>2016-11-30 16:29:18 +0100
commitc7fd46e42a9f5b4676415910b800e0340f77dc88 (patch)
tree83b8447d36c2947faeaf73b681db0bd833900594 /ipatests
parent8559791e0d520f4a3503e35d1975ac31448b1390 (diff)
downloadfreeipa-c7fd46e42a9f5b4676415910b800e0340f77dc88.tar.gz
freeipa-c7fd46e42a9f5b4676415910b800e0340f77dc88.tar.xz
freeipa-c7fd46e42a9f5b4676415910b800e0340f77dc88.zip
Test: made kinit_admin a returning function
In some cases we need to check the result of kinit and print out the error message. Therefore we need it to return the result. Reviewed-By: Milan Kubik <mkubik@redhat.com>
Diffstat (limited to 'ipatests')
-rw-r--r--ipatests/test_integration/tasks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipatests/test_integration/tasks.py b/ipatests/test_integration/tasks.py
index 58b3a6510..5a9d526f0 100644
--- a/ipatests/test_integration/tasks.py
+++ b/ipatests/test_integration/tasks.py
@@ -673,8 +673,8 @@ def disconnect_replica(master, replica, domain_level=None):
def kinit_admin(host, raiseonerr=True):
- host.run_command(['kinit', 'admin'], raiseonerr=raiseonerr,
- stdin_text=host.config.admin_password)
+ return host.run_command(['kinit', 'admin'], raiseonerr=raiseonerr,
+ stdin_text=host.config.admin_password)
def uninstall_master(host, ignore_topology_disconnect=True,