summaryrefslogtreecommitdiffstats
path: root/meta/lib/patchtest/tests
diff options
context:
space:
mode:
authorTrevor Gamblin <tgamblin@baylibre.com>2024-04-09 08:03:03 -0400
committerSteve Sakoman <steve@sakoman.com>2024-05-23 08:55:01 -0700
commit2e084b7b80fb0c836a689319c4e886d494d9e183 (patch)
tree9eb32390b911b266e68932373b67eda4187d3e11 /meta/lib/patchtest/tests
parentbef4fd23a015857b6218a3f6c00b8d571e921daa (diff)
downloadpoky-2e084b7b80fb0c836a689319c4e886d494d9e183.tar.gz
patchtest: test_metadata: fix invalid escape sequences
Clear up the following warnings seen during patchtest runs: |/workspace/yocto/poky/meta/lib/patchtest/tests/test_metadata.py:21: SyntaxWarning: invalid escape sequence '\+' | add_mark = pyparsing.Regex('\+ ') |/workspace/yocto/poky/meta/lib/patchtest/tests/test_metadata.py:26: SyntaxWarning: invalid escape sequence '\:' | git_regex = pyparsing.Regex('^git\:\/\/.*') (From OE-Core rev: b5406d3691341c050a62fc9a32dc5573fd0c484f) Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> (cherry picked from commit 2d64317835a768898aac592b24fcbdfaf6c8357a) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/lib/patchtest/tests')
-rw-r--r--meta/lib/patchtest/tests/test_metadata.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/patchtest/tests/test_metadata.py b/meta/lib/patchtest/tests/test_metadata.py
index be609dbd04..f5dbcf01ed 100644
--- a/meta/lib/patchtest/tests/test_metadata.py
+++ b/meta/lib/patchtest/tests/test_metadata.py
@@ -18,12 +18,12 @@ class TestMetadata(base.Metadata):
18 lictag_re = pyparsing.AtLineStart("License-Update:") 18 lictag_re = pyparsing.AtLineStart("License-Update:")
19 lic_chksum_added = pyparsing.AtLineStart("+" + metadata_chksum) 19 lic_chksum_added = pyparsing.AtLineStart("+" + metadata_chksum)
20 lic_chksum_removed = pyparsing.AtLineStart("-" + metadata_chksum) 20 lic_chksum_removed = pyparsing.AtLineStart("-" + metadata_chksum)
21 add_mark = pyparsing.Regex('\+ ') 21 add_mark = pyparsing.Regex('\\+ ')
22 max_length = 200 22 max_length = 200
23 metadata_src_uri = 'SRC_URI' 23 metadata_src_uri = 'SRC_URI'
24 md5sum = 'md5sum' 24 md5sum = 'md5sum'
25 sha256sum = 'sha256sum' 25 sha256sum = 'sha256sum'
26 git_regex = pyparsing.Regex('^git\:\/\/.*') 26 git_regex = pyparsing.Regex('^git\\:\\/\\/.*')
27 metadata_summary = 'SUMMARY' 27 metadata_summary = 'SUMMARY'
28 cve_check_ignore_var = 'CVE_CHECK_IGNORE' 28 cve_check_ignore_var = 'CVE_CHECK_IGNORE'
29 cve_status_var = 'CVE_STATUS' 29 cve_status_var = 'CVE_STATUS'