-
Notifications
You must be signed in to change notification settings - Fork 273
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
[Feature Request] Test Restart After Failure #1920
Comments
Bom dia Daniel, does #1607 sound like what you need? Otherwise, could you draft what would you like us to implement? A new CLI flag e.g.? |
From what I understand, in this case, it requires the test to start from another point to test the new implementation. In my case, it would be more for failures, possibly as a flag in the command like -c. Currently, when the test (using the -c flag) fails, it is necessary to press ENTER to restart it. Since my test involves a loop and often runs overnight, I need it to store the logs as usual and automatically restart when a failure occurs. |
Can you clarify what you mean by "I run a loop"? Do you mean: #!/usr/bin/env sh
command="maestro test ./my_fow"
max_retries=5
retries=0
while true; do
$command
if [ $? -eq 0 ]; then
echo "Command succeeded."
break
else
retries=$((retries + 1))
echo "Command failed. Attempt $retries of $max_retries."
fi
if [ $retries -ge $max_retries ]; then
echo "Command failed after $max_retries attempts."
exit 1
fi
done
|
Basically, that's it. In my flow, I use repeat.
Would I use this as a command? How would it look? |
Hey, thanks for getting back. So, are you satisfied now and can this issue be closed? :) If you believe that is a bug, please create a new issue (follow "bug report" template) and attach reproduction steps. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. Feel free to open a new issue with all the required information provided, including a minimal, reproducible sample. When creating a new issue, please make sure to diligently fill out the issue template. Thank you for your contribution to our open-source community! |
This issue has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar problem, please file a new issue. Make sure to follow the template and provide all the information necessary to reproduce the issue. |
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
In the testing environment I use, I run a loop performing a specific routine. When a test fails, it does not restart automatically. Is there any way to achieve this, or would it be a feature for the future?
The text was updated successfully, but these errors were encountered: