summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2022-10-10 00:04:21 +0000
committerGitHub <noreply@github.com>2022-10-10 00:04:21 +0000
commite92f9b319aecfc00147517ffca5cc9ae5f9154c5 (patch)
tree9a3687540e2b96931fe1dc1e7827a63fc8f32f75 /nixos
parent4e58b28480d763195c197b093d5a1b8a1e0b503e (diff)
parent535838d0a51806dae562ab1a66914b1bd52f9a8f (diff)
Merge staging-next into staging
Diffstat (limited to 'nixos')
-rw-r--r--nixos/tests/sssd-ldap.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/nixos/tests/sssd-ldap.nix b/nixos/tests/sssd-ldap.nix
index 27dce6ceb98cd..ff83e96068a96 100644
--- a/nixos/tests/sssd-ldap.nix
+++ b/nixos/tests/sssd-ldap.nix
@@ -91,6 +91,11 @@ in import ./make-test-python.nix ({pkgs, ...}: {
     machine.start()
     machine.wait_for_unit("openldap.service")
     machine.wait_for_unit("sssd.service")
-    machine.succeed("getent passwd ${testUser}")
+    result = machine.execute("getent passwd ${testUser}")
+    if result[0] == 0:
+      assert "${testUser}" in result[1]
+    else:
+      machine.wait_for_console_text("Backend is online")
+      machine.succeed("getent passwd ${testUser}")
   '';
 })