[stable-2.15] ansible-test - Fix handling of long timeouts (#80769) (#80772)

(cherry picked from commit aacab0633a)
pull/80814/head
Matt Clay 2 years ago committed by GitHub
parent 398841ba0d
commit 6bce05fd4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
bugfixes:
- ansible-test - Fix handling of timeouts exceeding one day.

@ -125,6 +125,6 @@ def configure_test_timeout(args: TestConfig) -> None:
signal.signal(signal.SIGUSR1, timeout_handler) signal.signal(signal.SIGUSR1, timeout_handler)
instance = WrappedThread(functools.partial(timeout_waiter, timeout_remaining.seconds)) instance = WrappedThread(functools.partial(timeout_waiter, timeout_remaining.total_seconds()))
instance.daemon = True instance.daemon = True
instance.start() instance.start()

Loading…
Cancel
Save