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

PhaseOptions(repeat_limit=None) does not repeat forever. #1160

Closed
dieser-niko opened this issue Jun 20, 2024 · 0 comments · Fixed by #1180
Closed

PhaseOptions(repeat_limit=None) does not repeat forever. #1160

dieser-niko opened this issue Jun 20, 2024 · 0 comments · Fixed by #1180
Assignees

Comments

@dieser-niko
Copy link

The docstring for htf.PhaseOption says:

repeat_limit: Maximum number of repeats. None indicates a phase will be
repeated infinitely as long as PhaseResult.REPEAT is returned.

But this doesn't seem to be the case. Doing exactly that only repeats the test 3 times and then fails.

Here's my test:

@htf.PhaseOptions(name="Repeat infinitely", timeout_s=200, repeat_limit=None)
def repeat(test: htf.TestApi, prompt: user_input.UserInput):
    print("hi")
    return htf.PhaseResult.REPEAT

I also run this test with test.execute(test_start=repeat) if that's relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants