From 3e192d6d746224efe8b9b83882304c2b77a71e9f Mon Sep 17 00:00:00 2001 From: Lijiawei <1456470136@qq.com> Date: Sun, 23 Apr 2023 11:55:10 +0800 Subject: [PATCH] fix: failed to generate report MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit shell=True 参数导致命令行解析错误。airtest report 这个命令本身就包含空格,使用 shell=True 会导致错误解析命令行而失败 --- run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run.py b/run.py index 0cb5cbf..bfbbf2b 100644 --- a/run.py +++ b/run.py @@ -82,7 +82,7 @@ def run_one_report(air, dev): "--lang", "zh" ] - ret = subprocess.call(cmd, shell=True, cwd=os.getcwd()) + ret = subprocess.call(cmd, cwd=os.getcwd()) return { 'status': ret, 'path': os.path.join(log_dir, 'log.html')