From a277b15b8c75f7d2da12234b959fbbc3d58365a3 Mon Sep 17 00:00:00 2001 From: Petr Balogh Date: Fri, 11 Oct 2024 16:54:04 +0200 Subject: [PATCH] Expand user in path for traceback log Signed-off-by: Petr Balogh --- ocs_ci/framework/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocs_ci/framework/main.py b/ocs_ci/framework/main.py index aaddd5d7a13..19d29175afc 100644 --- a/ocs_ci/framework/main.py +++ b/ocs_ci/framework/main.py @@ -22,7 +22,7 @@ def signal_term_handler(sig, frame): print(f"Got SIGTERM: {sig}") if hasattr(framework.config, "RUN"): framework.config.RUN["aborted"] = True - logdir = framework.config.RUN["log_dir"] + logdir = os.path.expanduser(framework.config.RUN["log_dir"]) with open(os.path.join(logdir, "traceback.log"), "w") as f: faulthandler.dump_traceback(file=f) global kill_counter