diff options
author | Phillip Smyth <phillip.smyth@codethink.co.uk> | 2018-11-30 11:33:16 +0000 |
---|---|---|
committer | Phillip Smyth <phillip.smyth@codethink.co.uk> | 2018-11-30 16:50:35 +0000 |
commit | ac0bc4c0ef755ba5577b4c34356171397f3f3908 (patch) | |
tree | 7fe99f794ad7158dd5e4e8d23d278005dca2bcac /tests/loader | |
parent | 2d6ec07d2cf20c20e9b9269334ba9599d588c410 (diff) | |
download | buildstream-ac0bc4c0ef755ba5577b4c34356171397f3f3908.tar.gz |
Added tests for .bst suffix and completions
buildcheckout.py: Add mandatory .bst suffix tests
completions.py: Add test for fail on invalid suffix
Added required files for testing
integration/source-determinism.py: renamed test elements to end with .bst
loader/__init__.py: initialised context properly with load and a message handler
Diffstat (limited to 'tests/loader')
-rw-r--r-- | tests/loader/__init__.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/loader/__init__.py b/tests/loader/__init__.py index fcefdacf5..812888181 100644 --- a/tests/loader/__init__.py +++ b/tests/loader/__init__.py @@ -1,14 +1,22 @@ +import os from buildstream._context import Context from buildstream._project import Project from buildstream._loader import Loader - # # This is used by the loader test modules, these should # be removed in favor of testing the functionality via # the CLI like in the frontend tests anyway. # + + +def dummy_handler(message, context): + pass + + def make_loader(basedir): context = Context() + context.load(config=os.devnull) + context.set_message_handler(dummy_handler) project = Project(basedir, context) return project.loader |