diff options
author | Michael Lando <ml636r@att.com> | 2018-08-20 11:34:04 +0300 |
---|---|---|
committer | Tal Gitelman <tg851x@intl.att.com> | 2018-08-20 08:51:45 +0000 |
commit | b751c9656c62ec4aa79e7af605dd24cfaeb4d8ad (patch) | |
tree | 7f34749a7419d7c2bc3c5fb3e3dddd174e43ca8f /sdc-os-chef/scripts/docker_run.sh | |
parent | 7c2f9647b0d271ff400392372225a4e4a30dcc47 (diff) |
fix docker run
fix bug in the docker run simulator exaction
Change-Id: I78879d830ad0cbe4801cb478f7e3bd379bc80a79
Issue-ID: SDC-1665
Signed-off-by: Michael Lando <ml636r@att.com>
Diffstat (limited to 'sdc-os-chef/scripts/docker_run.sh')
-rwxr-xr-x | sdc-os-chef/scripts/docker_run.sh | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/sdc-os-chef/scripts/docker_run.sh b/sdc-os-chef/scripts/docker_run.sh index bb6d6005d3..d02cc98da8 100755 --- a/sdc-os-chef/scripts/docker_run.sh +++ b/sdc-os-chef/scripts/docker_run.sh @@ -184,18 +184,6 @@ function probe_dcae_tools { } # -# check simulator status -function probe_sim { - if lsof -Pi :8285 -sTCP:LISTEN -t >/dev/null ; then - echo "running" - sim_stat=true - else - echo "not running" - sim_stat=false - fi -} -# - function monitor_docker { DOCKER_NAME=$1 @@ -567,7 +555,7 @@ function sdc-ui-tests { # SDC-Simulator function sdc-sim { - if [ ${RUN_SIMULATOR} = true ]; then + if [ ${RUN_SIMULATOR} == true ]; then echo "docker run sdc-webSimulator..." if [ ${LOCAL} = false ]; then docker pull ${PREFIX}/sdc-simulator:${RELEASE} @@ -575,7 +563,7 @@ function sdc-sim { probe_sim sim_stat=$? - if [ sim_stat=1 ]; then + if [ ${sim_stat} == 1 ]; then docker run \ --detach \ --name sdc-sim \ |