summaryrefslogtreecommitdiff
path: root/tests/frontend/configuredwarning/plugins/warninga.py
blob: 4ad0f3d2044f8e183edefdcb7489c794f8c1b1f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from buildstream import Element

WARNING_A = "warning-a"


class WarningA(Element):

    BST_MIN_VERSION = "2.0"

    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-a produced during assemble", warning_token=WARNING_A)


def setup():
    return WarningA