From 4a6f38c5327b40a45c340af49fee9a0d5cc890bd Mon Sep 17 00:00:00 2001 From: Trevor Gamblin Date: Wed, 13 Sep 2023 13:00:46 -0400 Subject: patchtest: Add tests from patchtest oe repo Copy the core components of the patchtest-oe repo into meta/lib/patchtest in oe-core. (From OE-Core rev: 257f64f4e4414b78981104aec132b067beb5a92a) Signed-off-by: Trevor Gamblin Signed-off-by: Richard Purdie --- meta/lib/patchtest/tests/pyparsing/parse_shortlog.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 meta/lib/patchtest/tests/pyparsing/parse_shortlog.py (limited to 'meta/lib/patchtest/tests/pyparsing/parse_shortlog.py') diff --git a/meta/lib/patchtest/tests/pyparsing/parse_shortlog.py b/meta/lib/patchtest/tests/pyparsing/parse_shortlog.py new file mode 100644 index 0000000000..26e9612c4a --- /dev/null +++ b/meta/lib/patchtest/tests/pyparsing/parse_shortlog.py @@ -0,0 +1,14 @@ +# subject pyparsing definition +# +# Copyright (C) 2016 Intel Corporation +# +# SPDX-License-Identifier: GPL-2.0 + +# NOTE:This is an oversimplified syntax of the mbox's summary + +import pyparsing +import common + +target = pyparsing.OneOrMore(pyparsing.Word(pyparsing.printables.replace(':',''))) +summary = pyparsing.OneOrMore(pyparsing.Word(pyparsing.printables)) +shortlog = common.start + target + common.colon + summary + common.end -- cgit v1.2.3-54-g00ecf