From 4bb1d1ae882d4fd5a9d56dce4f22aceedd12240d Mon Sep 17 00:00:00 2001 From: bolyor <464861137@qq.com> Date: Mon, 3 Aug 2020 10:55:49 +0800 Subject: [PATCH] add regex for EXPECTED and fix issue #I1PKJB --- test/maple_test/compare.py | 2 +- test/maple_test/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/maple_test/compare.py b/test/maple_test/compare.py index c28b8cccc8..18de5da586 100644 --- a/test/maple_test/compare.py +++ b/test/maple_test/compare.py @@ -31,7 +31,7 @@ EXPECTED_REGEX = r"\:{line_num}\:.*\:.*" SCAN_KEYWORDS = ["full", "not", "begin", "next", "end"] REGEX_KEYWORDS = ["auto", "not", "next", "end"] -EXPECTED_KEYWORDS = ["scan", "scan-not", "scan-auto"] +EXPECTED_KEYWORDS = ["regex", "regex-auto", "regex-not"] class CompareError(Exception): diff --git a/test/maple_test/utils.py b/test/maple_test/utils.py index 51054dbede..98aaa29bfa 100644 --- a/test/maple_test/utils.py +++ b/test/maple_test/utils.py @@ -176,7 +176,7 @@ def add_run_path(new_path): run_env = os.environ.copy() old_path = run_env.get("PATH") if old_path: - run_env["PATH"] = old_path + ":" + new_path + run_env["PATH"] = old_path + os.pathsep + new_path else: run_env["PATH"] = new_path return run_env -- Gitee