Skip to content

Add abort key to suites - #71

Merged
rical merged 2 commits into
masterfrom
suite-abort
Sep 4, 2026
Merged

rical merged 2 commits into
masterfrom
suite-abort

Conversation

@rical

@rical rical commented Sep 4, 2026

Copy link
Copy Markdown
Owner

Add abort key to suites
This allows a user to set a suite or test as "fatal" from a suite. I.e.
specify which failing tests should abort the execution.

Example of test abort:

  • case: "cases/foo.sh"
    abort: true
  • case: "cases/bar.sh"
  • case: "cases/baz.sh"

In the above example, the execution will abort of the foo.sh test fails.

Example of suite abort:

  • suite: "suites/sanity.yaml"
    abort: true
  • suite: "suites/mdns.yaml"
  • suite: "suites/rip.yaml"

In the above example, the execution will abort if ANY test in
sanity.yaml failes.

This new feature is particularly useful for early sanity checks. If the
target is down or there's a network problem, there's likely no point in
going on with future tests.

The --abort flag for the main 9pm.py harness is still there and it
makes all tests and suites "fatal".

This allows a user to set a suite or test as "fatal" from a suite. I.e.
specify which failing tests should abort the execution.

Example of test abort:

- case: "cases/foo.sh"
  abort: true
- case: "cases/bar.sh"
- case: "cases/baz.sh"

In the above example, the execution will abort of the foo.sh test fails.

Example of suite abort:

- suite: "suites/sanity.yaml"
  abort: true
- suite: "suites/mdns.yaml"
- suite: "suites/rip.yaml"

In the above example, the execution will abort if ANY test in
sanity.yaml failes.

This new feature is particularly useful for early sanity checks. If the
target is down or there's a network problem, there's likely no point in
going on with future tests.

The --abort flag for the main 9pm.py harness is still there and it
makes all tests and suites "fatal".

Signed-off-by: Richard Alpe <richard@bit42.se>
Test basic abort functionality.

Signed-off-by: Richard Alpe <richard@bit42.se>
@rical
rical merged commit 2b5dd60 into master Sep 4, 2026
2 checks passed
@rical
rical deleted the suite-abort branch September 23, 2026 08:59
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

Successfully merging this pull request may close these issues.

1 participant