forked from os-autoinst/os-autoinst
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Report test module failures via exit codes
- Introduced a `--exit-status-from-test-results` / `-e` flag to `isotovideo`. It'll inspect the test results after a full run and compute the exit code from them. If: - no test results exist: exit code = 100 - failed test results results exist: exit code = 101 (failed result => anything different than ok or softfail) else - exit code = 0 - Documented the flags in the perl pod section. - Unit tested with an empty distribution, a fail module distribution and a soft failure. - X-mas gift: Uppercase `$return_code` to follow perl practices. Co-authored-by: Oliver Kurz <[email protected]> Co-authored-by: Martchus <[email protected]>
- Loading branch information
1 parent
bd10c5a
commit 5eb5dfb
Showing
5 changed files
with
142 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Copyright SUSE LLC | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
use Mojo::Base -strict; | ||
use testapi; | ||
use autotest; | ||
|
||
# intentionally not loading anything... | ||
|
||
1; |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Copyright SUSE LLC | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
use Mojo::Base 'basetest', -signatures; | ||
use testapi; | ||
|
||
sub run ($self) { | ||
record_soft_failure('failing me softly with this song'); | ||
} | ||
|
||
1; |