Skip to content

Commit b5f1e64

Browse files
committed
Ensure Makefile still run tests properly / tests are run in container as expected
1 parent f9a540a commit b5f1e64

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ dist
1010
.tox
1111
.coverage
1212
html/*
13+
tests/__pycache__
1314

1415
# Compiled Documentation
1516
site/

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ build-py3:
1313
test: unit-test integration-test unit-test-py3 integration-test-py3
1414

1515
unit-test: build
16-
docker run docker-py py.test tests/test.py
16+
docker run docker-py py.test tests/test.py tests/utils_test.py
1717

1818
unit-test-py3: build-py3
19-
docker run docker-py3 py.test tests/test.py
19+
docker run docker-py3 py.test tests/test.py tests/utils_test.py
2020

2121
integration-test: build
22-
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
22+
docker run -e NOT_ON_HOST=true -v `$(HOST_TMPDIR)`:/tmp -v /var/run/docker.sock:/var/run/docker.sock docker-py py.test tests/integration_test.py
2323

2424
integration-test-py3: build-py3
25-
docker run -e NOT_ON_HOST=true -v `$(HOST_TMPDIR)`:/tmp -v /var/run/docker.sock:/var/run/docker.sock docker-py3 python tests/integration_test.py
25+
docker run -e NOT_ON_HOST=true -v `$(HOST_TMPDIR)`:/tmp -v /var/run/docker.sock:/var/run/docker.sock docker-py3 py.test tests/integration_test.py

tests/integration_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
from six.moves import BaseHTTPServer
3434
from six.moves import socketserver
3535

36-
from test import Cleanup
36+
from .test import Cleanup
3737

3838
# FIXME: missing tests for
3939
# export; history; insert; port; push; tag; get; load; stats

0 commit comments

Comments
 (0)