From 67da836314dcded394496847f7d9c4b99f5fe67b Mon Sep 17 00:00:00 2001 From: Wu Clan Date: Thu, 29 Aug 2024 11:35:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dallure=E6=8B=B7=E8=B4=9D?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E9=80=BB=E8=BE=91=20(#198)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- httpfpt/run.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/httpfpt/run.py b/httpfpt/run.py index d0977d5..2dcf359 100644 --- a/httpfpt/run.py +++ b/httpfpt/run.py @@ -146,8 +146,9 @@ def startup( WeChat(test_result).send() if allure: - if not os.path.exists(httpfpt_path.allure_report_env_file): - shutil.copyfile(httpfpt_path.allure_env_file, httpfpt_path.allure_report_env_file) + if os.path.exists(httpfpt_path.allure_report_dir): + if not os.path.exists(httpfpt_path.allure_report_env_file): + shutil.copyfile(httpfpt_path.allure_env_file, httpfpt_path.allure_report_env_file) if allure_serve: subprocess.run(