From 4df0aef67a09f7dd1861bb128daa407d5507b39f Mon Sep 17 00:00:00 2001 From: Jonathan Wren Date: Sat, 26 Sep 2020 11:44:40 -0700 Subject: [PATCH] fix file cleanup after failed test with no debug on --- features/environment.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/features/environment.py b/features/environment.py index ae3fb546..f3a0e13b 100644 --- a/features/environment.py +++ b/features/environment.py @@ -80,5 +80,8 @@ def after_scenario(context, scenario): os.chdir(CWD) # only clean up if debugging is off and the scenario passed - if not BEHAVE_DEBUG_ON_ERROR and scenario.status != "failed": + if BEHAVE_DEBUG_ON_ERROR and scenario.status != "failed": clean_all_working_dirs() + else: + clean_all_working_dirs() +