summaryrefslogtreecommitdiffstats
path: root/meta/lib/patchtest/tests/pyparsing/parse_shortlog.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/patchtest/tests/pyparsing/parse_shortlog.py')
-rw-r--r--meta/lib/patchtest/tests/pyparsing/parse_shortlog.py14
1 files changed, 14 insertions, 0 deletions
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..30d3ab35b3
--- /dev/null
+++ b/meta/lib/patchtest/tests/pyparsing/parse_shortlog.py
@@ -0,0 +1,14 @@
1# subject pyparsing definition
2#
3# Copyright (C) 2016 Intel Corporation
4#
5# SPDX-License-Identifier: GPL-2.0-only
6
7# NOTE:This is an oversimplified syntax of the mbox's summary
8
9import pyparsing
10import common
11
12target = pyparsing.OneOrMore(pyparsing.Word(pyparsing.printables.replace(':','')))
13summary = pyparsing.OneOrMore(pyparsing.Word(pyparsing.printables))
14shortlog = common.start + target + common.colon + summary + common.end