summaryrefslogtreecommitdiff
path: root/testing/ensure-pysqlcipher-has-usleep.sh
blob: d3d93d86a11ab66cade6fd3451f390b6a95758d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

# make sure that the current installed version of pysqlcipher has the
# HAVE_USLEEP flag set so we don't have problems with concurrent db access.

set -e

install_bundled_pysqlcipher() {
  pip uninstall -y pysqlcipher
  pip install --install-option="--bundled" pysqlcipher
}

./check-pysqlcipher.py || (install_bundled_pysqlcipher && ./check-pysqlcipher.py)