nixos/sssd: fix race condition in test
This commit is contained in:
parent
7338069be8
commit
51b9e2857f
1 changed files with 6 additions and 1 deletions
|
@ -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}")
|
||||
'';
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue