-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* stdlib: Fix refactor typo * Add test
- Loading branch information
Showing
5 changed files
with
25 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"log_header":"", "log_header_source_width":0} |
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 @@ | ||
#! /bin/sh | ||
|
||
WAKE="${1:+$1/wake}" | ||
|
||
# Since we are writing jobs to the database in this test we should clear it for each run if it | ||
# happens to exist from a previous run | ||
rm -f wake.db wake.log | ||
|
||
"${WAKE:-wake}" --stdout=warning,report testRunnerFailFinish |
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 @@ | ||
False |
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,13 @@ | ||
export def testRunnerFailFinish _ = | ||
def run job input = | ||
def (Runner _ virtRun) = virtualRunner | ||
require Pass _ = virtRun job (Pass input) | ||
|
||
# Force a failure outside of the actual job | ||
failWithError "Mark job as failure" | ||
|
||
def testRunner = makeRunner "" run | ||
|
||
makeExecPlan ("<test>", Nil) Nil | ||
| runJobWith testRunner | ||
| isJobOk |