summaryrefslogtreecommitdiff
path: root/tests/project/plugins.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/project/plugins.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/project/plugins.py')
-rw-r--r--tests/project/plugins.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/project/plugins.py b/tests/project/plugins.py
index 7932fcd6a..4040137c1 100644
--- a/tests/project/plugins.py
+++ b/tests/project/plugins.py
@@ -4,9 +4,6 @@ import pytest
from buildstream._context import Context
from buildstream._project import Project
from buildstream._pipeline import Pipeline
-from buildstream._platform import Platform
-
-from tests.testutils.site import HAVE_ROOT
DATA_DIR = os.path.join(
os.path.dirname(os.path.realpath(__file__)),
@@ -18,7 +15,11 @@ def create_pipeline(tmpdir, basedir, target):
context = Context([])
project = Project(basedir, context)
context.artifactdir = os.path.join(str(tmpdir), 'artifact')
- context._platform = Platform.get_platform()
+
+ def dummy_handler(message, context):
+ pass
+
+ context._set_message_handler(dummy_handler)
return Pipeline(context, project, [target], [])
@@ -29,7 +30,6 @@ def create_pipeline(tmpdir, basedir, target):
# also test that the project's configuration of plugin
# paths is actually working.
#
-@pytest.mark.skipif(not HAVE_ROOT, reason="requires root permissions")
@pytest.mark.datafiles(os.path.join(DATA_DIR, 'plugins'))
def test_custom_element(datafiles, tmpdir):