Merge pull request #107825 from raboof/pytest-remove-unreproducible-test-artifacts-from-output
python3Packages.pytest: remove unreproducible test artifacts from output
This commit is contained in:
commit
d14d417e7e
|
@ -58,6 +58,12 @@ buildPythonPackage rec {
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
runHook preCheck
|
runHook preCheck
|
||||||
$out/bin/py.test -x testing/ -k "not test_collect_pyargs_with_testpaths" --ignore=testing/test_junitxml.py
|
$out/bin/py.test -x testing/ -k "not test_collect_pyargs_with_testpaths" --ignore=testing/test_junitxml.py
|
||||||
|
|
||||||
|
# tests leave behind unreproducible pytest binaries in the output directory, remove:
|
||||||
|
find $out/lib -name "*-pytest-${version}.pyc" -delete
|
||||||
|
# specifically testing/test_assertion.py and testing/test_assertrewrite.py leave behind those:
|
||||||
|
find $out/lib -name "*opt-2.pyc" -delete
|
||||||
|
|
||||||
runHook postCheck
|
runHook postCheck
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue