From ac13729cdc450259a99a5937580d4e3e4bca08cf Mon Sep 17 00:00:00 2001 From: Olof hagsand Date: Tue, 20 Oct 2020 10:46:46 +0200 Subject: [PATCH] sleep 1 for docker test race condition --- docker/main/Makefile.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/main/Makefile.in b/docker/main/Makefile.in index c5710b6d..2c3e4ccd 100644 --- a/docker/main/Makefile.in +++ b/docker/main/Makefile.in @@ -73,9 +73,11 @@ push: # Start the clixon system container and run the test script # Note tests will kill the daemons started in the start scrips +# Note when start.sh is completed, the internal startsystem.sh script may still be running +# therefore the sleep 1 before tests start test: docker ./cleanup.sh ; ./start.sh # kill (ignore error) and the start it - sudo docker exec -t clixon-system bash -c 'cd /usr/local/bin/test && ./all.sh' + sudo docker exec -t clixon-system bash -c 'sleep 1 && cd /usr/local/bin/test && ./all.sh' depend: