Skip to content

Commit

Permalink
[NBS]: Fix some tests local teardown hangs (#2099)
Browse files Browse the repository at this point in the history
Do not ask for password in sudo. If user does not have NOPASSWD for sudo, just fail.
  • Loading branch information
jkuradobery authored Sep 21, 2024
1 parent 6f3cc95 commit 90be0b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloud/blockstore/tests/python/lib/loadtest_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def tear_down(self):
try:
with open(yatest_common.output_path() + "/dmesg.txt", "w") as dmesg_output:
subprocess.run(
["sudo", "dmesg", "-T"],
["sudo", "-n", "dmesg", "-T"],
stdout=dmesg_output,
stderr=dmesg_output,
timeout=10
Expand Down

0 comments on commit 90be0b6

Please sign in to comment.