Autopkgtests: fix race condition in puppet test

PuppetDB can take some time to process commands from the command queue
and commit the results to the database, so just wait a bit before
querying it.
parent 4de146d0
......@@ -59,6 +59,8 @@ puppet agent --test --server "$certname" && [ $? -eq 2]
echo "Checking for /tmp/testfile"
test -f /tmp/testfile
sleep 5 # Let PuppetDB commit stuff to the database
echo "Checking for node existence"
query "nodes/${certname}" | jq -e ".certname == \"${certname}\""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment