-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handling invalid output object from engines
- Loading branch information
Showing
7 changed files
with
59 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
|
||
echo "it is not JSON format!" |
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 @@ | ||
{} |
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 @@ | ||
- job: empty.yml | ||
tool: true.cwl | ||
output: {} | ||
id: do_nothing | ||
doc: Example of doing nothing | ||
- job: empty.yml | ||
tool: true.cwl | ||
output: {} | ||
id: do_nothing2 | ||
doc: Example of doing nothing more |
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,5 @@ | ||
class: CommandLineTool | ||
cwlVersion: v1.0 | ||
inputs: {} | ||
outputs: {} | ||
baseCommand: ["true"] |
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,17 @@ | ||
from pathlib import Path | ||
|
||
import schema_salad.ref_resolver | ||
|
||
from .util import get_data, run_with_mock_cwl_runner | ||
|
||
|
||
def test_invalid_outputs(tmp_path: Path) -> None: | ||
args = [ | ||
"--test", | ||
schema_salad.ref_resolver.file_uri(get_data("tests/test-data/nothing.yml")), | ||
] | ||
error_code, stdout, stderr = run_with_mock_cwl_runner( | ||
args, get_data("tests/test-data/dummy-executor.sh") | ||
) | ||
assert error_code == 1 | ||
assert "0 tests passed, 2 failures, 0 unsupported features" in stderr |
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