Skip to content
Snippets Groups Projects
Commit 004d670d authored by Morris Jobke's avatar Morris Jobke
Browse files

[autotest] wait for oracle docker container initialization instead of waiting a hard coded time

parent e46ec4a6
No related branches found
No related tags found
No related merge requests found
...@@ -165,8 +165,10 @@ function execute_tests { ...@@ -165,8 +165,10 @@ function execute_tests {
DOCKER_CONTAINER_ID=$(docker run -d deepdiver/docker-oracle-xe-11g) DOCKER_CONTAINER_ID=$(docker run -d deepdiver/docker-oracle-xe-11g)
DATABASEHOST=$(docker inspect "$DOCKER_CONTAINER_ID" | grep IPAddress | cut -d '"' -f 4) DATABASEHOST=$(docker inspect "$DOCKER_CONTAINER_ID" | grep IPAddress | cut -d '"' -f 4)
echo "Waiting 120 seconds for Oracle initialization ... " echo "Waiting for Oracle initialization ... "
sleep 120
# grep exits on the first match and then the script continues
docker logs -f "$DOCKER_CONTAINER_ID" 2>&1 | grep -q "Grant succeeded."
DATABASEUSER=autotest DATABASEUSER=autotest
DATABASENAME='XE' DATABASENAME='XE'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment