Browse Source

docker-py: upgrade and fix test script

Signed-off-by: Tibor Vass <tibor@docker.com>
Tibor Vass 9 years ago
parent
commit
8db141049f
2 changed files with 4 additions and 3 deletions
  1. 3 2
      Dockerfile
  2. 1 1
      hack/make/test-docker-py

+ 3 - 2
Dockerfile

@@ -141,10 +141,11 @@ RUN set -x \
 	&& rm -rf "$GOPATH"
 	&& rm -rf "$GOPATH"
 
 
 # Get the "docker-py" source so we can run their integration tests
 # Get the "docker-py" source so we can run their integration tests
-ENV DOCKER_PY_COMMIT 139850f3f3b17357bab5ba3edfb745fb14043764
+ENV DOCKER_PY_COMMIT 47ab89ec2bd3bddf1221b856ffbaff333edeabb4
 RUN git clone https://github.com/docker/docker-py.git /docker-py \
 RUN git clone https://github.com/docker/docker-py.git /docker-py \
 	&& cd /docker-py \
 	&& cd /docker-py \
-	&& git checkout -q $DOCKER_PY_COMMIT
+	&& git checkout -q $DOCKER_PY_COMMIT \
+	&& pip install -r test-requirements.txt
 
 
 # Setup s3cmd config
 # Setup s3cmd config
 RUN { \
 RUN { \

+ 1 - 1
hack/make/test-docker-py

@@ -12,7 +12,7 @@ set -e
 	}
 	}
 
 
 	# exporting PYTHONPATH to import "docker" from our local docker-py
 	# exporting PYTHONPATH to import "docker" from our local docker-py
-	test_env PYTHONPATH="$dockerPy" NOT_ON_HOST=true python "$dockerPy/tests/integration_test.py"
+	test_env PYTHONPATH="$dockerPy" py.test "$dockerPy/tests/integration"
 
 
 	bundle .integration-daemon-stop
 	bundle .integration-daemon-stop
 ) 2>&1 | tee -a "$DEST/test.log"
 ) 2>&1 | tee -a "$DEST/test.log"