Skip to content

Commit

Permalink
fix hardcoded path
Browse files Browse the repository at this point in the history
  • Loading branch information
bartoszWojciechO committed Dec 12, 2024
1 parent 12cf441 commit 39b9877
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/qa/test_connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import lib
from lib import daemon, info, logging, login, network, server
import os

CONNECT_ALIAS = [
"connect",
Expand All @@ -24,8 +25,9 @@ def teardown_function(function): # noqa: ARG001
logging.log()

kernel_logs = sh.sudo.dmesg()
project_root = os.environ["WORKDIR"]
# Write the logs to the output file
with open("/opt/dist/logs/dmesg.log", "w") as file:
with open(f"{project_root}/dist/logs/dmesg.log", "w") as file:
file.write("dmesg logs")
file.write(str(kernel_logs))

Expand Down

0 comments on commit 39b9877

Please sign in to comment.