aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/sos_tests.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/sos_tests.py b/tests/sos_tests.py
index 892309b7..cae65431 100644
--- a/tests/sos_tests.py
+++ b/tests/sos_tests.py
@@ -120,6 +120,9 @@ class BaseSoSTest(Test):
try:
self.cmd_output = process.run(exec_cmd, timeout=self.sos_timeout)
except Exception as err:
+ if not hasattr(err, 'result'):
+ # can't inspect the exception raised, just bail out
+ raise
if self._exception_expected:
self.cmd_output = err.result
else: