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/test_python_pylint.py | 1 + 1 file changed, 1 insertion(+) (limited to 'meta/lib/patchtest/tests/test_python_pylint.py') diff --git a/meta/lib/patchtest/tests/test_python_pylint.py b/meta/lib/patchtest/tests/test_python_pylint.py index ef315e591c..b03fd6f4f6 100644 --- a/meta/lib/patchtest/tests/test_python_pylint.py +++ b/meta/lib/patchtest/tests/test_python_pylint.py @@ -5,6 +5,7 @@ # SPDX-License-Identifier: GPL-2.0-only import base +import patterns from io import StringIO from data import PatchTestInput from pylint.reporters.text import TextReporter -- cgit v1.2.3-54-g00ecf