diff options
author | Angelos Evripiotis <jevripiotis@bloomberg.net> | 2019-07-02 15:01:50 +0100 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-07-05 09:44:45 +0000 |
commit | b60fffebf563edfe258cbb893754197af1ac5a0b (patch) | |
tree | 48d7a2bee30f9b9edf6ea825bc9b22c804d38e53 /tests/internals/pluginloading.py | |
parent | fe632514cb1892da1fe0c0f0c3a4fa3d33a8ec50 (diff) | |
download | buildstream-b60fffebf563edfe258cbb893754197af1ac5a0b.tar.gz |
Refactor: message handlers take 'is_silenced'
Remove the need to pass the Context object to message handlers, by
passing what is usually requested from the context instead.
This paves the way to sharing less information with some child jobs -
they won't need the whole context object, just the messenger.
Diffstat (limited to 'tests/internals/pluginloading.py')
-rw-r--r-- | tests/internals/pluginloading.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/internals/pluginloading.py b/tests/internals/pluginloading.py index 2d997077a..fa0b9afe8 100644 --- a/tests/internals/pluginloading.py +++ b/tests/internals/pluginloading.py @@ -19,7 +19,7 @@ def create_pipeline(tmpdir, basedir, target): context.casdir = os.path.join(str(tmpdir), 'cas') project = Project(basedir, context) - def dummy_handler(message, context): + def dummy_handler(message, is_silenced): pass context.set_message_handler(dummy_handler) |