Make run-tests script try to find qrexec

Parts of core-admin (specifically some extensions) require qrexec python
module to work, and to be tested. Try to find it in a standard place (as
qubes-builder place it).
This commit is contained in:
Marek Marczykowski-Górecki 2020-11-26 05:10:43 +01:00
parent 77323cd30d
commit 12bc523b98
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -9,6 +9,10 @@ fi
: "${PYTHON:=python3}"
: "${TESTPYTHONPATH:=test-packages}"
if [ -d ../core-qrexec/qrexec ] && ! $PYTHON -c 'import qrexec' 2>/dev/null; then
PYTHONPATH="${PYTHONPATH}:../core-qrexec"
fi
PYTHONPATH="${TESTPYTHONPATH}:${PYTHONPATH}"
export PYTHONPATH