sleep 1 for docker test race condition

This commit is contained in:
Olof hagsand 2020-10-20 10:46:46 +02:00
parent 1614bcd19c
commit ac13729cdc

View file

@ -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: