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-23 20:24:41 +0000
commit5cfb2f837b43c43f2ec140686d32bed523a6b92f (patch)
treea48171a09580a19af0266b7d9a2498d00e0cb879
parentb01c44fddb5a2b71b36c2239c91d124db1420d73 (diff)
downloadbuildstream-bschubert/normalize-path-in-context-tests.tar.gz
tests/context.py: Normalize path of XDG_CACHEbschubert/normalize-path-in-context-tests
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)