Use sudo to run the tests

in 9ed1964 the tests start using makq_queue_dirs() which does
chown with guid/id 0!
This commit is contained in:
Alexander Todorov 2018-02-14 14:05:45 +02:00 committed by Brian C. Lane
parent 98f3b7e7eb
commit 5500ec8c06
2 changed files with 2 additions and 2 deletions

View File

@ -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 && \

View File

@ -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/