File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
.PHONY : all build test integration-test unit-test
2
2
3
+ HOST_TMPDIR =test -n "$(TMPDIR ) " && echo $(TMPDIR ) || echo /tmp
4
+
3
5
all : test
4
6
5
7
build :
@@ -11,5 +13,4 @@ unit-test: build
11
13
docker run docker-py python tests/test.py
12
14
13
15
integration-test : build
14
- docker run -v /var/run/docker.sock:/var/run/docker.sock docker-py python tests/integration_test.py
15
-
16
+ 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
Original file line number Diff line number Diff line change 1
- version = "1.2.2 "
1
+ version = "1.2.3-dev "
2
2
version_info = tuple ([int (d ) for d in version .replace ("-dev" , "" ).split ("." )])
Original file line number Diff line number Diff line change 39
39
# export; history; insert; port; push; tag; get; load; stats
40
40
DEFAULT_BASE_URL = os .environ .get ('DOCKER_HOST' )
41
41
EXEC_DRIVER_IS_NATIVE = True
42
+ NOT_ON_HOST = os .environ .get ('NOT_ON_HOST' , False )
42
43
43
44
warnings .simplefilter ('error' )
44
45
create_host_config = docker .utils .create_host_config
@@ -1435,6 +1436,7 @@ def runTest(self):
1435
1436
self .tmp_imgs .append (img_id )
1436
1437
1437
1438
1439
+ @unittest .skipIf (NOT_ON_HOST , 'Tests running inside a container' )
1438
1440
class TestImportFromURL (ImportTestCase ):
1439
1441
'''Tests downloading an image over HTTP.'''
1440
1442
You can’t perform that action at this time.
0 commit comments