Skip to content

Commit

Permalink
Expand user in path for traceback log
Browse files Browse the repository at this point in the history
Signed-off-by: Petr Balogh <[email protected]>
  • Loading branch information
petr-balogh committed Oct 11, 2024
1 parent 1417982 commit a277b15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocs_ci/framework/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a277b15

Please sign in to comment.