Skip to content

Commit

Permalink
Add force_reset flag description
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodion Iafarov committed Sep 28, 2018
1 parent 2d8d061 commit 11aff4a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/WritingTests.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ openQA tests need to implement at least the *run* subroutine to
contain the actual test code and the test needs to be loaded in the distribution's
main.pm.

The *test_flags* subroutine specifies what happens when the test
fails.
The *test_flags* subroutine specifies what should happen when test execution is finished.
If we should skip execution of the following test modules if current one failed, or it
should be used to create a snapshot of SUT to rollback to. See example below.

There are several callbacks defined:

Expand Down Expand Up @@ -79,6 +80,7 @@ sub test_flags {
# 'ignore_failure' - if this module fails, it will not affect the overall result at all
# 'milestone' - after this test succeeds, update 'lastgood'
# 'norollback' - don't roll back to 'lastgood' snapshot if this fails
# 'force_reset' - roll back to 'lastgood' snapshot even if test was successful (supported on QEMU backend only)
return { fatal => 1 };
}
Expand Down

0 comments on commit 11aff4a

Please sign in to comment.