summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Schubert <contact@benschubert.me>2020-06-17 19:39:11 +0000
committerBenjamin Schubert <contact@benschubert.me>2020-06-17 19:39:11 +0000
commit97204c747a71fadda0af2c02d0dd2c00869534a7 (patch)
tree21d360b1da256cf327f6e22b2b349629f72d0b87
parent76f764b1a40e957b9636c480b7551713aa85fad4 (diff)
downloadbuildstream-bschubert/cleanups.tar.gz
conftest.py: Ensure the `basetemp` is a resolved pathbschubert/cleanups
Otherwise some of BuildStream's config will fail and it is therefore impossible to just run `pytest tests/`
-rwxr-xr-xtests/conftest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 8b526f982..bb4611a11 100755
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -140,6 +140,6 @@ def set_xdg_paths(pytestconfig):
]:
value = os.environ.get("BST_TEST_{}".format(env_var))
if value is None:
- value = os.path.join(pytestconfig.getoption("basetemp"), default)
+ value = os.path.realpath(os.path.join(pytestconfig.getoption("basetemp"), default))
os.environ[env_var] = value