Skip to content

Commit d7e539c

Browse files
authored
fix testplan.json when path present in env variable but not exists on disk (via allure-framework#564)
1 parent bfc5338 commit d7e539c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

allure-python-commons/src/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ def get_testplan():
395395
planned_tests = []
396396
file_path = os.environ.get("ALLURE_TESTPLAN_PATH")
397397

398-
if file_path:
398+
if file_path and os.path.exists(file_path):
399399
with open(file_path, 'r') as plan_file:
400400
plan = json.load(plan_file)
401401
planned_tests = plan.get("tests", [])

0 commit comments

Comments
 (0)