Skip to content

Abort test when important instructions fail #52

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

Open
buerge3 opened this issue Aug 30, 2023 · 0 comments
Open

Abort test when important instructions fail #52

buerge3 opened this issue Aug 30, 2023 · 0 comments

Comments

@buerge3
Copy link

buerge3 commented Aug 30, 2023

You know how CTF will stop executing the script if the StartCfs instruction fails? It would be nice if there were a way to set other instructions to just exit the test if a particular instruction fails. For example, a lot of my scripts have instructions for "setting up" the test before it actually gets into the bulk of the test itself. I do not want the script to bother running if this correct set up does not happen. Is there any way I can tell the test to stop end exit with an error if these setup steps do not work?

There are two different implementations that I would be okay with:

  1. Implement at the "test" level; that is, a new parameter at the level of the "case_number" and "instructions" fields. Then if any instruction in the test fails, it would abort executing the script.
  2. Implement at the individual "instruction" level. Then this would be a new parameter at the level of the existing "wait" and "verify_timeout" instructions that can be specified for every instruction.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant