From 3c7ed05c2bd7a77edf12aed7eb502917fc1b21fb Mon Sep 17 00:00:00 2001 From: Jake Hunsaker Date: Wed, 23 Jun 2021 10:03:59 -0400 Subject: [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 --- tests/sos_tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') 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 -- cgit