fix docker_run script
Change-Id: I4151bb342c9330990271ed9eb7e96d19e8e4c165
Issue-ID: SDC-1543
Signed-off-by: Yuli Shlosberg <ys9693@att.com>
diff --git a/sdc-os-chef/scripts/docker_run.sh b/sdc-os-chef/scripts/docker_run.sh
index 7f9cde7..a568857 100755
--- a/sdc-os-chef/scripts/docker_run.sh
+++ b/sdc-os-chef/scripts/docker_run.sh
@@ -504,7 +504,8 @@
# apis-sanity
function sdc-api-tests {
if [[ ${RUN_API_TESTS} = true ]] ; then
- healthCheck_http_code=healthCheck
+ healthCheck
+ healthCheck_http_code=$?
if [[ ${healthCheck_http_code} == 200 ]] ; then
echo "docker run sdc-api-tests..."
echo "Trigger sdc-api-tests docker, please wait..."
@@ -525,7 +526,8 @@
function sdc-ui-tests {
if [[ ${RUN_UI_TESTS} = true ]] ; then
- healthCheck_http_code=healthCheck
+ healthCheck
+ healthCheck_http_code=$?
if [[ ${healthCheck_http_code} == 200 ]]; then
echo "docker run sdc-ui-tets..."
echo "Trigger sdc-ui-tests docker, please wait..."