Skip to content

Commit de64d7e

Browse files
committed
Speed up with pytest-xdist
1 parent bea209b commit de64d7e

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

ubuntu-24.04-noble-amd64-valgrind/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ ARG PIP_NO_CACHE_DIR=1
4343

4444
RUN virtualenv -p /usr/bin/python3.12-dbg --system-site-packages /vpy3 \
4545
&& /vpy3/bin/pip install --upgrade pip \
46-
&& /vpy3/bin/pip install olefile pytest pytest-cov pytest-timeout pytest-valgrind \
46+
&& /vpy3/bin/pip install olefile pytest pytest-cov pytest-timeout pytest-valgrind pytest-xdist \
4747
&& chown -R pillow:pillow /vpy3
4848

4949
COPY depends /depends

ubuntu-24.04-noble-amd64-valgrind/test.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ cd /Pillow
44
make clean
55
make install-coverage
66

7-
PYTHONMALLOC=malloc valgrind --suppressions=/depends/python.supp --leak-check=no \
8-
--log-file=/tmp/valgrind-output \
9-
python3 -m pytest --no-memcheck -vv --valgrind --valgrind-log=/tmp/valgrind-output
7+
PYTHONMALLOC=malloc valgrind --trace-children=yes --trace-children-skip='*/gs' \
8+
--suppressions=/depends/python.supp --leak-check=no \
9+
--log-file=/tmp/valgrind-output.%p \
10+
python3 -m pytest --no-memcheck -vv --valgrind -n auto
1011

1112
# To run one test in the image:
1213
# make bash

0 commit comments

Comments
 (0)