diff --git a/Dockerfile.test b/Dockerfile.test index 6dc82f63..97f0ce6e 100644 --- a/Dockerfile.test +++ b/Dockerfile.test @@ -5,7 +5,7 @@ RUN yum -y install --nogpgcheck epel-release && \ rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-* && \ yum -y install make libgit2-glib tito python-pylint \ python-nose python-mako python-flask \ - python-coverage libselinux-python \ + python-coverage libselinux-python sudo \ pykickstart python2-pytoml python-sphinx \ python2-mock python-semantic_version && \ yum clean all && \ diff --git a/Makefile b/Makefile index 61edec2b..20eb3df0 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,7 @@ check: # /api/docs/ tests require we have the documentation already built test: docs @echo "*** Running tests ***" - PYTHONPATH=$(PYTHONPATH):./src/ $(PYTHON) -m nose -v --with-coverage --cover-erase --cover-branches \ + sudo PYTHONPATH=$(PYTHONPATH):./src/ $(PYTHON) -m nose -v --with-coverage --cover-erase --cover-branches \ --cover-package=pylorax --cover-inclusive \ ./src/pylorax/ ./tests/pylorax/