Skip to content

Commit f97900e

Browse files
author
Tony Crisci
committed
fix tests
1 parent 0fce78d commit f97900e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ RUN export DEBIAN_FRONTEND=noninteractive; \
2727
python3-gi
2828

2929
RUN pip3 install yapf flake8 && \
30+
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
3031
for py in python3 python3.6 python3.7 python3.9 python3.10; do \
31-
curl https://bootstrap.pypa.io/get-pip.py | $py; \
32-
$py -m pip install \
32+
${py} get-pip.py; \
33+
PYTHONPATH=/usr/lib/${py}/site-packages ${py} -m pip install \
3334
pytest \
3435
pytest-asyncio \
3536
pytest-timeout \

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ format:
1414

1515
test:
1616
for py in python3.6 python3.7 python3.9 python3.10 python3.8 ; do \
17-
if hash $$py; then \
18-
dbus-run-session $$py -m pytest -sv --cov=dbus_next || exit 1 ; \
17+
if hash $${py}; then \
18+
PYTHONPATH=/usr/lib/$${py}/site-packages dbus-run-session $${py} -m pytest -sv --cov=dbus_next || exit 1 ; \
1919
fi \
2020
done \
2121

0 commit comments

Comments
 (0)