Browse code

Fix 'make test-docker-py' error

Signed-off-by: Yanqiang Miao <miao.yanqiang@zte.com.cn>

Yanqiang Miao authored on 2016/07/09 12:52:33
Showing 1 changed files
... ...
@@ -25,7 +25,13 @@ DOCKER_ENVS := \
25 25
 	-e DOCKER_USERLANDPROXY \
26 26
 	-e TESTDIRS \
27 27
 	-e TESTFLAGS \
28
-	-e TIMEOUT
28
+	-e TIMEOUT \
29
+	-e HTTP_PROXY \
30
+	-e HTTPS_PROXY \
31
+	-e NO_PROXY \
32
+	-e http_proxy \
33
+	-e https_proxy \
34
+	-e no_proxy
29 35
 # note: we _cannot_ add "-e DOCKER_BUILDTAGS" here because even if it's unset in the shell, that would shadow the "ENV DOCKER_BUILDTAGS" set in our Dockerfile, which is very important for our official builds
30 36
 
31 37
 # to allow `make BIND_DIR=. shell` or `make BIND_DIR= test`
... ...
@@ -44,7 +50,7 @@ GIT_BRANCH_CLEAN := $(shell echo $(GIT_BRANCH) | sed -e "s/[^[:alnum:]]/-/g")
44 44
 DOCKER_IMAGE := docker-dev$(if $(GIT_BRANCH_CLEAN),:$(GIT_BRANCH_CLEAN))
45 45
 DOCKER_DOCS_IMAGE := docker-docs$(if $(GIT_BRANCH_CLEAN),:$(GIT_BRANCH_CLEAN))
46 46
 
47
-DOCKER_FLAGS := docker run --rm -i --privileged $(DOCKER_USERDEF_ENVS) $(DOCKER_ENVS) $(DOCKER_MOUNT)
47
+DOCKER_FLAGS := docker run --rm -i --privileged $(DOCKER_ENVS) $(DOCKER_MOUNT)
48 48
 
49 49
 # if this session isn't interactive, then we don't want to allocate a
50 50
 # TTY, which would fail, but if it is interactive, we do want to attach