summaryrefslogtreecommitdiff
path: root/tests/context
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 12:36:41 -0500
commit683a6d406aa91d1cf51e0fd6b1adf3f1ff77eac6 (patch)
tree09acc4c0d48d6b2d522a118ca271eb770aae3506 /tests/context
parentfd92ebc9267f51b6b84b17a7ef6f4bde535436e1 (diff)
downloadbuildstream-683a6d406aa91d1cf51e0fd6b1adf3f1ff77eac6.tar.gz
Adapting test cases to expect logs in stderr
And also adapted them to remove any occurrences of HAVE_ROOT.
Diffstat (limited to 'tests/context')
-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']