summaryrefslogtreecommitdiff
path: root/tests/frontend/configuredwarning/plugins/warningb.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/frontend/configuredwarning/plugins/warningb.py')
-rw-r--r--tests/frontend/configuredwarning/plugins/warningb.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/frontend/configuredwarning/plugins/warningb.py b/tests/frontend/configuredwarning/plugins/warningb.py
new file mode 100644
index 000000000..64d25ef39
--- /dev/null
+++ b/tests/frontend/configuredwarning/plugins/warningb.py
@@ -0,0 +1,27 @@
+from buildstream import Element
+
+WARNING_B = "warning-b"
+
+
+class WarningB(Element):
+ def configure(self, node):
+ pass
+
+ def preflight(self):
+ pass
+
+ def get_unique_key(self):
+ pass
+
+ def configure_sandbox(self, sandbox):
+ pass
+
+ def stage(self, sandbox):
+ pass
+
+ def assemble(self, sandbox):
+ self.warn("Testing: warning-b produced during assemble", warning_token=WARNING_B)
+
+
+def setup():
+ return WarningB