[stable-2.12] ansible-test - Fix handling of long timeouts (#80769) (#80775)

(cherry picked from commit aacab0633a)
pull/80831/head
Matt Clay 3 years ago committed by GitHub
parent 6a5563b7cd
commit a675a5d0cc
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): # type: (TestConfig) -> None
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.start()

Loading…
Cancel
Save