Skip to content

Commit 628694a

Browse files
committed
tox: skip parallelized tests that cause failures running under valgrind
1 parent 4553aca commit 628694a

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

tests/repo/test_ebuild.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ def test_masters(self, testdata_config):
106106
secondary_repo = testdata_config.repos["dependent-secondary"]
107107
assert secondary_repo.masters == (primary_repo,)
108108

109+
@pytest.mark.parallel
109110
def test_pkg_metadata_regen(self, testdata_config, tmpdir):
110111
orig_repo = testdata_config.repos["metadata-gen"]
111112
# copy original repo to a temp dir

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ commands =
6464
python setup.py build_ext --inplace
6565
# run doctests
6666
valgrind pytest --doctest-cython src/pkgcraft
67-
# run regular tests
68-
valgrind pytest {posargs}
67+
# run regular tests, skipping parallelized ones that cause failures
68+
valgrind pytest -m "not parallel" {posargs}
6969

7070
[testenv:bench]
7171
description = run benchmarks against pkgcore, portage, and others

0 commit comments

Comments
 (0)