From fb338ad2852534f360244371246110f622f3cc30 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Thu, 18 Dec 2025 17:01:53 +0100 Subject: [PATCH] test: fix regression in misc/support_collect The support script now requires sudo. Signed-off-by: Joachim Wiberg --- test/case/misc/support_collect/test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/case/misc/support_collect/test.py b/test/case/misc/support_collect/test.py index 4852f320..1ff1d630 100755 --- a/test/case/misc/support_collect/test.py +++ b/test/case/misc/support_collect/test.py @@ -39,7 +39,7 @@ with infamy.Test() as test: # Note: timeout is generous to handle systems with many network ports # (ethtool collection scales with number of interfaces) with open(output_file, 'wb') as f: - result = tgtssh.run("support --work-dir /tmp collect --log-sec 2", + result = tgtssh.run("sudo support --work-dir /tmp collect --log-sec 2", stdout=f, stderr=subprocess.PIPE, timeout=120) @@ -117,7 +117,7 @@ with infamy.Test() as test: # Run support collect with encryption with open(encrypted_file, 'wb') as f: - result = tgtssh.run(f"support --work-dir /tmp collect --log-sec 2 --password {test_password}", + result = tgtssh.run(f"sudo support --work-dir /tmp collect --log-sec 2 --password {test_password}", stdout=f, stderr=subprocess.PIPE, timeout=120)