Closed
Description
Using the --lg-log option affects pytest's rootdir
(labgrid-venv) kfa@kjeld-Latitude-5580:/userdata/labgridtools/remotetests/remotetest$ pytest --capture=sys -rs --lg-log /tmp/labgrid-log --lg-env local.yaml
================================================================================== test session starts ==================================================================================
platform linux -- Python 3.5.2, pytest-3.3.2, py-1.5.2, pluggy-0.6.0
rootdir: /, inifile:
The tests runs ok, but the pytest cache does not work
could not create cache path /.cache/v/cache/lastfailed
It seems like pytest sets rootdir to be the commom topdir of --lg-log and current working direktory
(labgrid-venv) kfa@kjeld-Latitude-5580:/userdata/labgridtools/remotetests/remotetest$ pytest --capture=sys -rs --lg-log /userdata/labgridtools/remotetests/log --lg-env local.yaml
================================================================================== test session starts ==================================================================================
platform linux -- Python 3.5.2, pytest-3.3.2, py-1.5.2, pluggy-0.6.0
rootdir: /userdata/labgridtools/remotetests, inifile: