summaryrefslogtreecommitdiff
path: root/tests/plugins/pipeline/badversionsource/customsources/foo.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/plugins/pipeline/badversionsource/customsources/foo.py')
-rw-r--r--tests/plugins/pipeline/badversionsource/customsources/foo.py19
1 files changed, 19 insertions, 0 deletions
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