diff options
author | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-05-22 12:25:33 +0100 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-05-24 15:16:23 +0000 |
commit | a97c8e7bd09cbd066f62ea17551f7e797890ce8a (patch) | |
tree | 8bb7e3ed4c701d85e1c2f9681d5a876047647465 /tests/internals | |
parent | 66a91a2beb9cb348aa18662c2f0c22976785832b (diff) | |
download | buildstream-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.
Diffstat (limited to 'tests/internals')
-rw-r--r-- | tests/internals/context.py | 2 |
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) |