Skip to content

Commit 902fa92

Browse files
committed
Use the log_path specified by the command-line options
1 parent 529a0a3 commit 902fa92

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3524,7 +3524,7 @@ def tearDown(self):
35243524
test_id = "%s.%s.%s" % (self.__class__.__module__,
35253525
self.__class__.__name__,
35263526
self._testMethodName)
3527-
test_logpath = "latest_logs/" + test_id
3527+
test_logpath = self.log_path + "/" + test_id
35283528
if not os.path.exists(test_logpath):
35293529
try:
35303530
os.makedirs(test_logpath)
@@ -3544,7 +3544,7 @@ def tearDown(self):
35443544
test_id = "%s.%s.%s" % (self.__class__.__module__,
35453545
self.__class__.__name__,
35463546
self._testMethodName)
3547-
test_logpath = "latest_logs/" + test_id
3547+
test_logpath = self.log_path + "/" + test_id
35483548
if not os.path.exists(test_logpath):
35493549
try:
35503550
os.makedirs(test_logpath)

seleniumbase/plugins/base_plugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ def beforeTest(self, test):
100100
test.test.environment = self.options.environment
101101
test.test.env = self.options.environment # Add a shortened version
102102
test.test.data = self.options.data
103+
test.test.log_path = self.options.log_path
103104
test.test.args = self.options
104105
test.test.report_on = self.report_on
105106
self.test_count += 1

0 commit comments

Comments
 (0)