diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-13 22:41:38 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-14 11:14:40 +0000 |
commit | 629c9f1cacb0d1af8512d184045309d4f4887354 (patch) | |
tree | d14f2b69870359c549ba751d6521934e1008c2e9 /meta/lib | |
parent | 66effe576587a3aefe2d2a34a47963f687642978 (diff) | |
download | poky-629c9f1cacb0d1af8512d184045309d4f4887354.tar.gz |
oeqa/core/runner: Correctly markup regexs
Avoid the warning "DeprecationWarning: invalid escape sequence \(" by marking
the regexs correctly.
(From OE-Core rev: cb49980fa4a158d5529902df731dec61a8c9b3d4)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/core/runner.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/core/runner.py b/meta/lib/oeqa/core/runner.py index 7035adfaae..df88b85f1c 100644 --- a/meta/lib/oeqa/core/runner.py +++ b/meta/lib/oeqa/core/runner.py | |||
@@ -93,13 +93,13 @@ class OETestResult(_TestResult): | |||
93 | 93 | ||
94 | # When fails at module or class level the class name is passed as string | 94 | # When fails at module or class level the class name is passed as string |
95 | # so figure out to see if match | 95 | # so figure out to see if match |
96 | m = re.search("^setUpModule \((?P<module_name>.*)\)$", scase_str) | 96 | m = re.search(r"^setUpModule \((?P<module_name>.*)\)$", scase_str) |
97 | if m: | 97 | if m: |
98 | if case.__class__.__module__ == m.group('module_name'): | 98 | if case.__class__.__module__ == m.group('module_name'): |
99 | found = True | 99 | found = True |
100 | break | 100 | break |
101 | 101 | ||
102 | m = re.search("^setUpClass \((?P<class_name>.*)\)$", scase_str) | 102 | m = re.search(r"^setUpClass \((?P<class_name>.*)\)$", scase_str) |
103 | if m: | 103 | if m: |
104 | class_name = "%s.%s" % (case.__class__.__module__, | 104 | class_name = "%s.%s" % (case.__class__.__module__, |
105 | case.__class__.__name__) | 105 | case.__class__.__name__) |