Skip to content

Commit 509196b

Browse files
committed
Prevent unused log folders from getting created
1 parent deac888 commit 509196b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4453,10 +4453,10 @@ def save_teardown_screenshot(self):
44534453
will still be taken after the last step of your tearDown(), where
44544454
you should be calling "super(SubClassOfBaseCase, self).tearDown()"
44554455
"""
4456-
test_id = self.__get_test_id()
4457-
test_logpath = self.log_path + "/" + test_id
4458-
self.__create_log_path_as_needed(test_logpath)
44594456
if self.__has_exception() or self.save_screenshot_after_test:
4457+
test_id = self.__get_test_id()
4458+
test_logpath = self.log_path + "/" + test_id
4459+
self.__create_log_path_as_needed(test_logpath)
44604460
self.__set_last_page_screenshot()
44614461
if self.is_pytest:
44624462
self.__add_pytest_html_extra()

0 commit comments

Comments
 (0)