Provide DOCKER_HOME to gen_coverage_report.sh (#1174)
author이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 <chunseok.lee@samsung.com>
Fri, 11 May 2018 06:20:19 +0000 (15:20 +0900)
committer최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 <hk0110.choi@samsung.com>
Fri, 11 May 2018 06:20:19 +0000 (15:20 +0900)
1. remove `source docker_nnfw` from docker_coverage_report.sh
2. pass DOCKER_HOME to gen_coverage_report.sh

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
scripts/command/docker_coverage_report.sh
scripts/command/gen_coverage_report.sh

index 8a123cd..de5569a 100755 (executable)
@@ -11,7 +11,7 @@ DOCKER_VOLUMES+=" -v $HOST_HOME:$DOCKER_HOME"
 
 DOCKER_RUN_OPTS="--rm"
 DOCKER_RUN_OPTS+=" -w $DOCKER_HOME"
-
+DOCKER_EVN_VARS+=" -e DOCKER_HOME=${DOCKER_HOME}"
 
 docker run $DOCKER_RUN_OPTS $DOCKER_ENV_VARS $DOCKER_VOLUMES $DOCKER_IMAGE_NAME sh -c "./scripts/command/gen_coverage_report.sh"
 
index 2475a62..a7e4d96 100755 (executable)
@@ -8,7 +8,6 @@ NNFW_ROOT=$SCRIPT_ROOT/../..
 LCOV_PATH=$(command -v lcov)
 GENHTML_PATH=$(command -v genhtml)
 
-source $SCRIPT_ROOT/nnfw_docker
 
 SRC_PREFIX=${SRC_PREFIX:-${DOCKER_HOME}}