From 4005ff5f7a2aedc0d39425278fb337b4aa6a85d6 Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Wed, 30 Aug 2017 22:17:16 -0400 Subject: plugin tests: Adding new tests with plugins loaded in a pipeline o Testing that we can load a custom element or source o Testing that we assert and trigger an error when the requested format version of a plugin by the project is greater than the reported version of the plugin --- .../pipeline/badversionsource/customsources/foo.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/plugins/pipeline/badversionsource/customsources/foo.py (limited to 'tests/plugins/pipeline/badversionsource/customsources/foo.py') diff --git a/tests/plugins/pipeline/badversionsource/customsources/foo.py b/tests/plugins/pipeline/badversionsource/customsources/foo.py new file mode 100644 index 000000000..f50855fd1 --- /dev/null +++ b/tests/plugins/pipeline/badversionsource/customsources/foo.py @@ -0,0 +1,19 @@ +from buildstream import Source, Consistency + + +class BarSource(Source): + + BST_FORMAT_VERSION = 5 + + def preflight(self): + pass + + def configure(self, node): + pass + + def get_consistency(self): + return Consistency.INCONSISTENT + + +def setup(): + return BarSource -- cgit v1.2.1