Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block timeout introduction #6031

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Oct 2, 2024

  1. Block timeout introduction

    This commit introduces a new timeout feature, which adds the possibility
    to set a specific timeout for a block of code with context manager like
    this:
    
    	with self.wait_max(3):
    		#code which should take max 3 seconds
    		...
    
    The  `wait_max` method will send `SIGTERM` if the code doesn't end
    within 3 seconds. This signal will be caught by avocado-instrumented
    runner, which will interrupt the test, the same way as with a regular
    timeout.
    
    Reference: avocado-framework#5994
    Signed-off-by: Jan Richter <[email protected]>
    richtja committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    c108f3a View commit details
    Browse the repository at this point in the history