aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2021-06-23 10:03:59 -0400
committerJake Hunsaker <jhunsake@redhat.com>2021-06-30 08:42:06 -0400
commit3c7ed05c2bd7a77edf12aed7eb502917fc1b21fb (patch)
treea41e8bd2db7a8abc72902a79433d03bb0ecc6851
parentc03d147363ef1d2abfc394edea11a9a6d784ab91 (diff)
downloadsos-3c7ed05c2bd7a77edf12aed7eb502917fc1b21fb.tar.gz
[tests] Make sos execution timeout configurable
Allows test cases to set their own timeout for sos command executions, rather than applying a 300 second timeout to all test cases. 300 seconds remains the default, however. Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r--tests/sos_tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/sos_tests.py b/tests/sos_tests.py
index 84173cf8..892309b7 100644
--- a/tests/sos_tests.py
+++ b/tests/sos_tests.py
@@ -65,6 +65,7 @@ class BaseSoSTest(Test):
_tmpdir = None
_exception_expected = False
sos_cmd = ''
+ sos_timeout = 300
@property
def klass_name(self):
@@ -117,7 +118,7 @@ class BaseSoSTest(Test):
"""
exec_cmd = self._generate_sos_command()
try:
- self.cmd_output = process.run(exec_cmd, timeout=300)
+ self.cmd_output = process.run(exec_cmd, timeout=self.sos_timeout)
except Exception as err:
if self._exception_expected:
self.cmd_output = err.result