mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 20:21:04 +00:00
ttfw: save console log to file
This commit is contained in:
@@ -44,6 +44,7 @@ class Env(object):
|
||||
:keyword env_config_file: test env config file path
|
||||
:keyword test_name: test suite name, used when generate log folder name
|
||||
"""
|
||||
CURRENT_LOG_FOLDER = ""
|
||||
|
||||
def __init__(self,
|
||||
app=None,
|
||||
@@ -59,6 +60,8 @@ class Env(object):
|
||||
if not os.path.exists(self.log_path):
|
||||
os.makedirs(self.log_path)
|
||||
|
||||
Env.CURRENT_LOG_FOLDER = self.log_path
|
||||
|
||||
self.allocated_duts = dict()
|
||||
self.lock = threading.RLock()
|
||||
|
||||
|
Reference in New Issue
Block a user