summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-05-22 12:25:33 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-05-24 15:16:23 +0000
commita97c8e7bd09cbd066f62ea17551f7e797890ce8a (patch)
tree8bb7e3ed4c701d85e1c2f9681d5a876047647465
parent66a91a2beb9cb348aa18662c2f0c22976785832b (diff)
downloadbuildstream-a97c8e7bd09cbd066f62ea17551f7e797890ce8a.tar.gz
tests/context.py: Normalize path of XDG_CACHE
When running tests without --basetemp ./tmp, the path to the XDG_CACHE will not be normalized, and we check that it is equal to the normalized version of it. This test only passes because it assumed "--basetemp ./tmp". Now, it would work whatever the basetemp.
-rw-r--r--tests/internals/context.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/internals/context.py b/tests/internals/context.py
index 82d600133..da7b307d8 100644
--- a/tests/internals/context.py
+++ b/tests/internals/context.py
@@ -40,7 +40,7 @@ def test_context_create(context_fixture):
#######################################
def test_context_load(context_fixture):
context = context_fixture['context']
- cache_home = context_fixture['xdg-cache']
+ cache_home = os.path.normpath(context_fixture['xdg-cache'])
assert isinstance(context, Context)
context.load(config=os.devnull)