python3Packages.sqlalchemy: parallelize tests with xdist
Cuts down the test phase from 11 to 4 minutes on my remote builder.
This commit is contained in:
parent
7369d9eef7
commit
6904fe3b15
1 changed files with 4 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
|||
, mock
|
||||
, pysqlite
|
||||
, pytestCheckHook
|
||||
, pytest_xdist
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
@ -15,9 +16,12 @@ buildPythonPackage rec {
|
|||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
pytest_xdist
|
||||
mock
|
||||
] ++ lib.optional (!isPy3k) pysqlite;
|
||||
|
||||
pytestFlagsArray = [ "-n auto" ];
|
||||
|
||||
postInstall = ''
|
||||
sed -e 's:--max-worker-restart=5::g' -i setup.cfg
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue