python-dbusmock: avoid eval error when missing test output of bluez

This fixes an evaluation error that occurs when we don’t have
bluez.test. getOutput defaults to "out" in these cases.
This commit is contained in:
Matthew Bauer 2020-04-06 11:05:02 -04:00
parent 51ab062863
commit c6ff360cc4

View file

@ -44,12 +44,12 @@ buildPythonPackage rec {
checkInputs = [
nose dbus dbus-python which pycodestyle pyflakes
pygobject3 bluez bluez.test networkmanager
pygobject3 bluez (lib.getOutput "test" bluez) networkmanager
];
checkPhase = ''
runHook preCheck
export PATH="$PATH:${bluez.test}/test";
export PATH="$PATH:${lib.getOutput "test" bluez}/test";
nosetests -v
runHook postCheck
'';