Explorar el Código

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).
Marek Marczykowski-Górecki hace 3 años
padre
commit
12bc523b98
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      run-tests

+ 4 - 0
run-tests

@@ -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