Skip to content

Commit

Permalink
save dmesg -T on the tear_down of blockstore loadtest
Browse files Browse the repository at this point in the history
  • Loading branch information
debnatkh committed Jan 31, 2024
1 parent fbff117 commit d8314c5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cloud/blockstore/tests/python/lib/loadtest_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,13 @@ def tear_down(self):

# It may be beneficial to save dmesg output for debugging purposes.
try:
dmesg_output = open("dmesg.txt", "w")
subprocess.run(
["sudo", "dmesg", "-T"],
stdout=dmesg_output,
stderr=dmesg_output,
timeout=10
)
with open("dmesg.txt", "w") as dmesg_output:
subprocess.run(
["sudo", "dmesg", "-T"],
stdout=dmesg_output,
stderr=dmesg_output,
timeout=10
)
except Exception as dmesg_error:
logging.info(f"Failed to save dmesg output: {dmesg_error}")
pass
Expand Down

0 comments on commit d8314c5

Please sign in to comment.