E3-1751: Fix make test to use cellbuild's path
All threads resolved!
All threads resolved!
As make test creates a cellbuild, the tests should look for modules in the cell directory.
This removes the need for activating an environment as part of any custom test targets.
This would allow module devs to go from
# configure/module/RULES_MODULE
module_tests:
source /some/env && pytest
# tests/test_something.py
with IOC("--cell-path", os.environ["TEMP_CELL_PATH"]):
assert things
to
# configure/module/RULES_MODULE
module_tests:
pytest
# tests/test_something.py
with IOC():
assert things
Edited by Anders Lindh Olsson
Merge request reports
Activity
requested review from @lucasmagalhaes, @douglasaraujo, @grzegorzkowalski, and @simonrose
assigned to @anderslindh1
- Resolved by Anders Lindh Olsson
Ok, after a depressingly long amount of time to get something testing here, this doesn't seem to work.
If you have a startup script with
echo ${EPICS_DRIVER_PATH}
in it (and a test that runs this script) you can see that this is not being caught correctly. I also tried adding EPICS_DRIVER_PATH to theexport
list, but that doesn't seem to work...
added 1 commit
- df4c9eae - fixup! Fix make test to use cellbuild's path
mentioned in commit 4560be22
Please register or sign in to reply