Skip to content

Commit

Permalink
fix testplan.json when path present in env variable but not exists on…
Browse files Browse the repository at this point in the history
… disk (via #564)
  • Loading branch information
sseliverstov committed Feb 18, 2021
1 parent 27bf63c commit 323d394
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion allure-python-commons/src/utils.py
Expand Up @@ -395,7 +395,7 @@ def get_testplan():
planned_tests = []
file_path = os.environ.get("ALLURE_TESTPLAN_PATH")

if file_path:
if file_path and os.path.exists(file_path):
with open(file_path, 'r') as plan_file:
plan = json.load(plan_file)
planned_tests = plan.get("tests", [])
Expand Down

0 comments on commit 323d394

Please sign in to comment.