From bb0f1625d7655d04c6df3c144e488f676ff2f762 Mon Sep 17 00:00:00 2001 From: Trevor Gamblin Date: Tue, 24 Sep 2024 07:54:58 -0400 Subject: patchtest: patterns: add module, refactor Currently, patchtest has a lot of spread-out definitions for patterns used in various setup and test functions. Organize these by putting them all into a new patterns.py module. This allows the tests/pyparsing directory to be removed, as it is now redundant. Also remove some definitions where they were duplicated or unused, and perform some renames to improve readability and avoid collisions. Many of these variables are composed from others, so the file is only partially sorted. (From OE-Core rev: 1ab55d495957918be532a36224b5598c9955a44d) Signed-off-by: Trevor Gamblin Signed-off-by: Richard Purdie --- meta/lib/patchtest/tests/pyparsing/parse_shortlog.py | 14 -------------- 1 file changed, 14 deletions(-) delete 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 deleted file mode 100644 index 30d3ab35b3..0000000000 --- a/meta/lib/patchtest/tests/pyparsing/parse_shortlog.py +++ /dev/null @@ -1,14 +0,0 @@ -# subject pyparsing definition -# -# Copyright (C) 2016 Intel Corporation -# -# SPDX-License-Identifier: GPL-2.0-only - -# 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