ipatests: Stop sssd service before deleting the cache

In the integration tests, we do not stop the sssd service
before deleting the cache, but rather start it. We need
to stop sssd before deleting the cache.

Reviewed-By: Nathaniel McCallum <npmccallum@redhat.com>
This commit is contained in:
Tomas Babej 2014-02-05 12:07:26 +01:00 committed by Petr Viktorin
parent 99facb753a
commit daf2d64f83

View File

@ -399,9 +399,9 @@ def clear_sssd_cache(host):
systemd_available = host.transport.file_exists('/bin/systemctl')
if systemd_available:
host.run_command(['systemctl', 'start', 'sssd'])
host.run_command(['systemctl', 'stop', 'sssd'])
else:
host.run_command(['/sbin/service', 'sssd', 'start'])
host.run_command(['/sbin/service', 'sssd', 'stop'])
host.run_command("find /var/lib/sss/db -name '*.ldb' | "
"xargs rm -fv")