From a1ab09a074143f3fe3e8f9dbbafda12dcb597a7c Mon Sep 17 00:00:00 2001 From: Andrey Berezin Date: Fri, 18 Nov 2022 13:46:42 +0300 Subject: [PATCH] Fix too long logs dir for analyze logs Signed-off-by: Andrey Berezin --- pytest_tests/testsuites/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytest_tests/testsuites/conftest.py b/pytest_tests/testsuites/conftest.py index b2b29df3..9e790427 100644 --- a/pytest_tests/testsuites/conftest.py +++ b/pytest_tests/testsuites/conftest.py @@ -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)