testing: timeout long tests

https://github.com/NixOS/nixpkgs/issues/102724
This commit is contained in:
Drew Risinger
2020-11-30 22:55:25 -08:00
committed by Jonathan Ringer
parent f13c73c093
commit 0e7d871210
2 changed files with 12 additions and 1 deletions
@@ -21,6 +21,7 @@
, pytestCheckHook
, ddt
, fixtures
, pytest-timeout
, qiskit-terra
}:
@@ -81,8 +82,13 @@ buildPythonPackage rec {
pytestCheckHook
ddt
fixtures
pytest-timeout
qiskit-terra
];
pytestFlagsArray = [
"--timeout=30"
"--durations=10"
];
preCheck = ''
# Tests include a compiled "circuit" which is auto-built in $HOME