mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 13:08:31 +02:00
fix file cleanup after failed test with no debug on
This commit is contained in:
parent
eb9b679e4c
commit
4df0aef67a
1 changed files with 4 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue