forked from rebolsource/r3
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix FAIL and QUIT exit status, add CI Tests
Due to changes related to merging DO and IMPORT for the module system, scripts which were failing or running QUIT with a nonzero exit code were still giving zero at exit. This was meaning there was no alert to the GitHub Action regarding failure. This tries to workaround the problem by adding to the clearly unfinished feature of QUIT handling for the common code path for import. But also adds in tests designed to fail for the CI to make sure they give the right failing exit codes.
- Loading branch information
1 parent
cf62668
commit 01fd1c2
Showing
6 changed files
with
136 additions
and
5 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
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,9 @@ | ||
Rebol [ | ||
Title: {FAIL with an error} | ||
Description: { | ||
Used by GitHub Actions to make sure FAIL gives a nonzero exit code. | ||
} | ||
] | ||
|
||
print "FAILing with a message (should give exit code 1)" | ||
fail {The Error Message} |
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,9 @@ | ||
Rebol [ | ||
Title: {Quit With Exit Code 3} | ||
Description: { | ||
Used by GitHub Actions to make sure QUIT with exit code is honored. | ||
} | ||
] | ||
|
||
print "Quitting With Exit Code 3" | ||
quit 3 |