We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8d08a9 commit f060040Copy full SHA for f060040
test/framework/run.py
@@ -1746,15 +1746,15 @@ def test_run_shell_cmd_timeout_stream(self):
1746
"""Test use of run_shell_cmd with a timeout."""
1747
data = '0'*128
1748
# Failure on process timeout
1749
- cmd = f'while true; do echo {data} && sleep 0.1; done'
+ cmd = f'for i in {{1..20}}; do echo {data} && sleep 0.1; done'
1750
with self.mocked_stdout_stderr():
1751
self.assertErrorRegex(
1752
EasyBuildError, "Timeout during `.*` after .* seconds",
1753
run_shell_cmd, cmd, timeout=.5, stream_output=True
1754
)
1755
1756
# Failure on stdout read timeout
1757
- cmd = 'cat -'
+ cmd = 'timeout 1 cat -'
1758
1759
1760
0 commit comments