summaryrefslogtreecommitdiff
path: root/tests/context/context.py
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-12-13 11:49:39 -0500
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-12-13 11:49:39 -0500
commit44a49070c07433c99e6d9745f61479a21bbc31fd (patch)
treefe2c0da15f3a60dfcec858c895875ed1601ff78f /tests/context/context.py
parent1feef7c08980a635d78942e202bc93ec1fadb20e (diff)
downloadbuildstream-early-logging.tar.gz
Adapting test cases to expect logs in stderrearly-logging
And also adapted them to remove any occurrences of HAVE_ROOT.
Diffstat (limited to 'tests/context/context.py')
-rw-r--r--tests/context/context.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/context/context.py b/tests/context/context.py
index 0db589a1a..442069bf6 100644
--- a/tests/context/context.py
+++ b/tests/context/context.py
@@ -4,8 +4,6 @@ import pytest
from buildstream._context import Context
from buildstream._exceptions import LoadError, LoadErrorReason
-from tests.testutils.site import HAVE_ROOT
-
DATA_DIR = os.path.join(
os.path.dirname(os.path.realpath(__file__)),
'data',
@@ -37,7 +35,6 @@ def test_context_create(context_fixture):
#######################################
# Test configuration loading #
#######################################
-@pytest.mark.skipif(not HAVE_ROOT, reason="requires root permissions")
def test_context_load(context_fixture):
context = context_fixture['context']
cache_home = context_fixture['xdg-cache']
@@ -52,7 +49,6 @@ def test_context_load(context_fixture):
# Test that values in a user specified config file
# override the defaults
-@pytest.mark.skipif(not HAVE_ROOT, reason="requires root permissions")
@pytest.mark.datafiles(os.path.join(DATA_DIR))
def test_context_load_user_config(context_fixture, datafiles):
context = context_fixture['context']