nixos/cloud-init: fail test faster

This commit is contained in:
illustris 2023-12-12 09:40:12 +05:30
parent 039ec28011
commit 409782d025
No known key found for this signature in database
GPG key ID: 56C8FC0B899FEFA3

View file

@ -73,6 +73,7 @@ in makeTest {
}; };
testScript = '' testScript = ''
# To wait until cloud-init terminates its run # To wait until cloud-init terminates its run
unnamed.wait_for_unit("cloud-init-local.service")
unnamed.wait_for_unit("cloud-final.service") unnamed.wait_for_unit("cloud-final.service")
unnamed.succeed("cat /tmp/cloudinit-write-file | grep -q 'cloudinit'") unnamed.succeed("cat /tmp/cloudinit-write-file | grep -q 'cloudinit'")