Skip to content

Commit

Permalink
xapi_stdext_unix/test: Fix intermittent systemd cram test failure (#6061
Browse files Browse the repository at this point in the history
)

Instead of sleeping and hoping for the best, wait for the background job
to finish.
  • Loading branch information
psafont authored Oct 29, 2024
2 parents 2ed1166 + 7ad5f95 commit 94dc48c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
$ ./test_systemd.exe --server &
@systemd.socket
READY=1
$ sleep 1
$ ./test_systemd.exe --notify
$ wait

== Use socket files
$ export TMPDIR=${TMPDIR:-/tmp}
Expand All @@ -22,6 +22,7 @@
$ sleep 1
$ test -S "$NOTIFY_SOCKET"
$ ./test_systemd.exe --notify
$ wait

== Currently not run tests because of insufficient permissions
== in cram to be manipulating this file
Expand Down

0 comments on commit 94dc48c

Please sign in to comment.