From 90cc397710b12e3e2fafebfa2857c2feddf9bd0c Mon Sep 17 00:00:00 2001 From: wangrx Date: Wed, 6 Mar 2024 16:28:08 +0800 Subject: [PATCH] Fix python read file error --- test/regresstest/run_regress_test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/regresstest/run_regress_test.py b/test/regresstest/run_regress_test.py index 3cfc9f457..9e9fd7972 100755 --- a/test/regresstest/run_regress_test.py +++ b/test/regresstest/run_regress_test.py @@ -392,6 +392,8 @@ def setIntlEnviron(case): # intl environ LC_ALL real_path = case.replace('/regresstest/ark-regress/', '') if case.startswith('/') else case.replace('regresstest/ark-regress/', '') js_case_path = os.path.join(RegressTestConfig.REGRESS_TEST_CASE_DIR, real_path) + if not os.path.exists(js_case_path): + return; source = get_file_source(js_case_path) env_match = ENV_PATTERN.search(source) if 'LC_ALL' in os.environ: -- Gitee