From 070cbece0aeb3380b4bbd67c1a0ab6444df0340c Mon Sep 17 00:00:00 2001 From: Joffrey F Date: Wed, 6 May 2015 17:53:53 -0700 Subject: [PATCH 1/2] Fixes for #586 --- Makefile | 5 +++-- tests/integration_test.py | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4cb0ffdacf..cf291ea96e 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,7 @@ .PHONY: all build test integration-test unit-test +HOST_TMPDIR=test -n "$(TMPDIR)" && echo $(TMPDIR) || echo /tmp + all: test build: @@ -11,5 +13,4 @@ unit-test: build docker run docker-py python tests/test.py integration-test: build - docker run -v /var/run/docker.sock:/var/run/docker.sock docker-py python tests/integration_test.py - + docker run -e NOT_ON_HOST=true -v `$(HOST_TMPDIR)`:/tmp -v /var/run/docker.sock:/var/run/docker.sock docker-py python tests/integration_test.py diff --git a/tests/integration_test.py b/tests/integration_test.py index 0db305279f..0a569128c3 100644 --- a/tests/integration_test.py +++ b/tests/integration_test.py @@ -39,6 +39,7 @@ # export; history; insert; port; push; tag; get; load; stats DEFAULT_BASE_URL = os.environ.get('DOCKER_HOST') EXEC_DRIVER_IS_NATIVE = True +NOT_ON_HOST = os.environ.get('NOT_ON_HOST', False) warnings.simplefilter('error') create_host_config = docker.utils.create_host_config @@ -1435,6 +1436,7 @@ def runTest(self): self.tmp_imgs.append(img_id) +@unittest.skipIf(NOT_ON_HOST, 'Tests running inside a container') class TestImportFromURL(ImportTestCase): '''Tests downloading an image over HTTP.''' From 2fdc433dc05c79651e871be093762ad560232a27 Mon Sep 17 00:00:00 2001 From: Joffrey F Date: Wed, 6 May 2015 18:04:18 -0700 Subject: [PATCH 2/2] dev version --- docker/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/version.py b/docker/version.py index a57056b65d..7ff5b2a3f1 100644 --- a/docker/version.py +++ b/docker/version.py @@ -1,2 +1,2 @@ -version = "1.2.2" +version = "1.2.3-dev" version_info = tuple([int(d) for d in version.replace("-dev", "").split(".")])