fix file cleanup after failed test with no debug on

This commit is contained in:
Jonathan Wren 2020-09-26 11:44:40 -07:00
parent eb9b679e4c
commit 4df0aef67a
No known key found for this signature in database
GPG key ID: 43D5FF8722E7F68A

View file

@ -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()