[Pkg-sssd-devel] [Git][sssd-team/sssd][master] tests: fix checking for systemctl status

Timo Aaltonen (@tjaalton) gitlab at salsa.debian.org
Sun Apr 10 08:09:44 BST 2022



Timo Aaltonen pushed to branch master at Debian SSSD packaging / sssd


Commits:
b91487b9 by Timo Aaltonen at 2022-04-09T20:47:47+03:00
tests: fix checking for systemctl status

- - - - -


1 changed file:

- debian/tests/util


Changes:

=====================================
debian/tests/util
=====================================
@@ -142,8 +142,10 @@ cache_credentials = True
 ldap_search_base = ${mysuffix}
 EOF
     chmod 0600 /etc/sssd/sssd.conf
-    systemctl restart sssd
-    systemctl status --lines 100 sssd
+    systemctl restart sssd || {
+        systemctl status --lines 100 sssd
+        false
+    }
 }
 
 configure_sssd_ldap_rfc2307() {
@@ -160,8 +162,10 @@ cache_credentials = True
 ldap_search_base = ${mysuffix}
 EOF
     chmod 0600 /etc/sssd/sssd.conf
-    systemctl restart sssd
-    systemctl status --lines 100 sssd
+    systemctl restart sssd || {
+        systemctl status --lines 100 sssd
+        false
+    }
 }
 
 check_local_user() {



View it on GitLab: https://salsa.debian.org/sssd-team/sssd/-/commit/b91487b9c4560423270e93fb373cd7bff128b62b

-- 
View it on GitLab: https://salsa.debian.org/sssd-team/sssd/-/commit/b91487b9c4560423270e93fb373cd7bff128b62b
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-sssd-devel/attachments/20220410/2f10b8b6/attachment-0001.htm>


More information about the Pkg-sssd-devel mailing list