summaryrefslogtreecommitdiff
path: root/testing/tox.ini
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2017-07-07 17:41:02 -0300
committerdrebs <drebs@leap.se>2017-07-08 07:48:46 -0300
commitb289e6caa81fd3c6c8b6a6070feee6b1b0965122 (patch)
treecec96f2521441e2ba212a6e782750d363d87ca14 /testing/tox.ini
parent36e4a396a2a7edcc05c41e739d8f24ec7945cd21 (diff)
[benchmarks] avoid reinstalling pysqlcipher if unneeded
pysqlcipher just has to be reinstalled for benchmark tests if current installed version fails the HAVE_USLEEP flag test. This commit moves the code for checking and reinstalling to a script and bypasses the reinstallation when it is unneeded.
Diffstat (limited to 'testing/tox.ini')
-rw-r--r--testing/tox.ini8
1 files changed, 3 insertions, 5 deletions
diff --git a/testing/tox.ini b/testing/tox.ini
index aba69cf6..9aaa1ae3 100644
--- a/testing/tox.ini
+++ b/testing/tox.ini
@@ -73,11 +73,9 @@ deps =
elasticsearch
certifi
commands =
-# use a bundled version of pysqlcipher to ensure HAVE_USLEEP is set and we
-# don't have problems with concurrent db access.
- pip install -I --install-option="--bundled" pysqlcipher
- ./check-pysqlcipher.py
-# and only then run benchmark
+# we must make sure that installed pysqlcipher was built with the HAVE_USLEEP
+# flag, or we might have problems with concurrent db access.
+ ./ensure-pysqlcipher-has-usleep.sh
py.test --benchmark-only {posargs}
passenv = HOST_HOSTNAME