Skip to content

Commit fb338ad

Browse files
committed
test: fix regression in misc/support_collect
The support script now requires sudo. Signed-off-by: Joachim Wiberg <[email protected]>
1 parent 79b0625 commit fb338ad

File tree

1 file changed

+2
-2
lines changed
  • test/case/misc/support_collect

1 file changed

+2
-2
lines changed

test/case/misc/support_collect/test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
# Note: timeout is generous to handle systems with many network ports
4040
# (ethtool collection scales with number of interfaces)
4141
with open(output_file, 'wb') as f:
42-
result = tgtssh.run("support --work-dir /tmp collect --log-sec 2",
42+
result = tgtssh.run("sudo support --work-dir /tmp collect --log-sec 2",
4343
stdout=f,
4444
stderr=subprocess.PIPE,
4545
timeout=120)
@@ -117,7 +117,7 @@
117117

118118
# Run support collect with encryption
119119
with open(encrypted_file, 'wb') as f:
120-
result = tgtssh.run(f"support --work-dir /tmp collect --log-sec 2 --password {test_password}",
120+
result = tgtssh.run(f"sudo support --work-dir /tmp collect --log-sec 2 --password {test_password}",
121121
stdout=f,
122122
stderr=subprocess.PIPE,
123123
timeout=120)

0 commit comments

Comments
 (0)