Tuesday, June 29, 2021

Re: OOT tests failing in GNU Radio 3.9.2.0, Ubuntu 20.04.2 LTS

Hi Anton,

On 28/06/2021 22.12, Anton Ottosson wrote:
> It indeed seems like the tests only work if I first install the module. I have set up a GitHub with the full source at https://github.com/antonott/oot_tests_failing. The README outlines the procedure used to build, test (and fail), install, and finally test again (and succeeding).

Look at https://github.com/antonott/oot_tests_failing/blob/main/build/python/qa_iqlevels_test.sh#L8-L9

export PYTHONPATH=$PYTHONPATH
/usr/bin/python3 /home/antonott/gr-iqlevels/python/qa_iqlevels.py

As suspected "/home/antonott/gr-iqlevels/python/" is not added to PYTHONPATH and when you run the tests it can't find your module. This seems to be broken since the migration from swig to pybind. Previously when swig was used the import statements in the python/qa_*.py files looked like this

import oot_swig as oot

and build/swig was added to the PYTHONPATH in build/python/qa_*_test.sh

export PYTHONPATH=/home/user/src/gr-oot/build/swig:$PYTHONPATH

Not sure how to fix this but I my option this needs to be fixed/improved.

Regards,
Vasil

No comments:

Post a Comment