Skip to content

Commit

Permalink
修复allure拷贝文件逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-clan committed Aug 29, 2024
1 parent 5cd4289 commit 8ed237e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions httpfpt/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 8ed237e

Please sign in to comment.