summaryrefslogtreecommitdiffstats
path: root/meta/lib/patchtest/tests/test_mbox_bugzilla.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/patchtest/tests/test_mbox_bugzilla.py')
-rw-r--r--meta/lib/patchtest/tests/test_mbox_bugzilla.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/meta/lib/patchtest/tests/test_mbox_bugzilla.py b/meta/lib/patchtest/tests/test_mbox_bugzilla.py
deleted file mode 100644
index 99b529b755..0000000000
--- a/meta/lib/patchtest/tests/test_mbox_bugzilla.py
+++ /dev/null
@@ -1,20 +0,0 @@
1# Checks related to the patch's bugzilla tag
2#
3# Copyright (C) 2016 Intel Corporation
4#
5# SPDX-License-Identifier: GPL-2.0-only
6
7import pyparsing
8import base
9
10class Bugzilla(base.Base):
11 rexp_detect = pyparsing.Regex('\[\s?YOCTO.*\]')
12 rexp_validation = pyparsing.Regex('\[(\s?YOCTO\s?#\s?(\d+)\s?,?)+\]')
13
14 def test_bugzilla_entry_format(self):
15 for commit in Bugzilla.commits:
16 if not self.rexp_detect.search_string(commit.commit_message):
17 self.skip("No bug ID found")
18 elif not self.rexp_validation.search_string(commit.commit_message):
19 self.fail('Bugzilla issue ID is not correctly formatted - specify it with format: "[YOCTO #<bugzilla ID>]"', commit=commit)
20