Fix too long logs dir for analyze logs

Signed-off-by: Andrey Berezin <a.berezin@yadro.com>
This commit is contained in:
Andrey Berezin 2022-11-18 13:46:42 +03:00 committed by abereziny
parent 4a9e3facff
commit a1ab09a074

View file

@ -97,7 +97,7 @@ def analyze_logs(prepare_tmp_dir: str, hosting: Hosting, request: FixtureRequest
return
# Test name may exceed os NAME_MAX (255 bytes), so we use timestamp instead
logs_dir = os.path.join(prepare_tmp_dir, f"logs_{sanitize_for_file_name(start_time)}")
logs_dir = os.path.join(prepare_tmp_dir, f"logs_{sanitize_for_file_name(str(start_time))}")
dump_logs(hosting, logs_dir, start_time, end_time)
check_logs(logs_dir)