summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryanxk <yanxk.fnst@fujitsu.com>2022-10-23 14:26:01 +0800
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2023-01-23 14:41:27 +0000
commit36a23bcdd06bdc7524e793b2aa5a82abbbd2a5a8 (patch)
tree2ace38f23d8b2c928aebfdf06749232943ef2ffa
parent95ea8f3633f58cd5433e36c10074df5fe19a125a (diff)
agl-test-framework: fix pytest warning
fix a pytest warning caused by missing escape character. Bug-AGL: SPEC-4345 Signed-off-by: yanxk <yanxk.fnst@fujitsu.com> Change-Id: Iec8a4faf09322b6518409cb575d0149cad6d34a9
-rw-r--r--tests/LTP/agl_test_ltp_base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/LTP/agl_test_ltp_base.py b/tests/LTP/agl_test_ltp_base.py
index be78a4c..9c8f5bc 100644
--- a/tests/LTP/agl_test_ltp_base.py
+++ b/tests/LTP/agl_test_ltp_base.py
@@ -34,7 +34,7 @@ class LTPBase(AGLBaseTest):
def get_test_case_list(self):
case_list = list()
- reObj = re.compile('^([\\w\-]+)(\\s+)(\\w+)', re.MULTILINE)
+ reObj = re.compile('^([\\w\\-]+)(\\s+)(\\w+)', re.MULTILINE)
test_file = self.LTPTEST + self.test_name
test_cases = open(test_file, 'r')