From 90be0b6033a5b388999e3c620e93f06eeacd2c12 Mon Sep 17 00:00:00 2001 From: Sergei <149376659+jkuradobery@users.noreply.github.com> Date: Sat, 21 Sep 2024 20:03:10 +0200 Subject: [PATCH] [NBS]: Fix some tests local teardown hangs (#2099) Do not ask for password in sudo. If user does not have NOPASSWD for sudo, just fail. --- cloud/blockstore/tests/python/lib/loadtest_env.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/blockstore/tests/python/lib/loadtest_env.py b/cloud/blockstore/tests/python/lib/loadtest_env.py index 8495d52b1fa..d45293a0360 100644 --- a/cloud/blockstore/tests/python/lib/loadtest_env.py +++ b/cloud/blockstore/tests/python/lib/loadtest_env.py @@ -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