summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Babej <tbabej@redhat.com>2014-01-20 09:41:32 +0100
committerPetr Viktorin <pviktori@redhat.com>2014-01-20 15:32:01 +0100
commit5403648afd7dde69bf774f5dbdd2d07873ec3f84 (patch)
tree42b8115810850e396c610e474275bb083793b5ce
parent531ede2904608a2bfe24d09c94dc0b87d780f30a (diff)
downloadfreeipa-5403648afd7dde69bf774f5dbdd2d07873ec3f84.tar.gz
freeipa-5403648afd7dde69bf774f5dbdd2d07873ec3f84.tar.xz
freeipa-5403648afd7dde69bf774f5dbdd2d07873ec3f84.zip
ipatests: Remove sudo calls from tasks
Sudo calls are not necessary since we log in as a root. Additionally, sudo requires tty in default configuration, which is not acquired when using OpenSSH transport. https://fedorahosted.org/freeipa/ticket/4125
-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 cee547683..72196914f 100644
--- a/ipatests/test_integration/tasks.py
+++ b/ipatests/test_integration/tasks.py
@@ -412,8 +412,8 @@ def sync_time(host, server):
leaves ntpd stopped.
"""
- host.run_command(['sudo', 'systemctl', 'stop', 'ntpd'])
- host.run_command(['sudo', 'ntpdate', server.hostname])
+ host.run_command(['systemctl', 'stop', 'ntpd'])
+ host.run_command(['ntpdate', server.hostname])
def connect_replica(master, replica):