summaryrefslogtreecommitdiffstats
path: root/test/lib/ansible_test/_internal/util.py
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2023-05-10 23:55:57 +0200
committerGitHub <noreply@github.com>2023-05-10 23:55:57 +0200
commit4c6aa70662e6f2804686a32bea611a8aa870b363 (patch)
treefbd73652de1876180d5e0c5d9213eb6bef10decf /test/lib/ansible_test/_internal/util.py
parent[sanity-mypy] Ignore re-import warning (#80763) (diff)
downloadansible-4c6aa70662e6f2804686a32bea611a8aa870b363.tar.xz
ansible-4c6aa70662e6f2804686a32bea611a8aa870b363.zip
ansible-test - Fix timeout handling (#80764)
Diffstat (limited to 'test/lib/ansible_test/_internal/util.py')
-rw-r--r--test/lib/ansible_test/_internal/util.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lib/ansible_test/_internal/util.py b/test/lib/ansible_test/_internal/util.py
index 029f73be22..a5a9fabaed 100644
--- a/test/lib/ansible_test/_internal/util.py
+++ b/test/lib/ansible_test/_internal/util.py
@@ -920,6 +920,10 @@ class ApplicationWarning(Exception):
"""General application warning which interrupts normal program flow."""
+class TimeoutExpiredError(SystemExit):
+ """Error raised when the test timeout has been reached or exceeded."""
+
+
class SubprocessError(ApplicationError):
"""Error resulting from failed subprocess execution."""