-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[21.09] fix JobWrapper: use correct fail method #14235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
bernt-matthias
wants to merge
9
commits into
galaxyproject:release_21.09
Choose a base branch
from
bernt-matthias:topic/fail-ec-21.09
base: release_21.09
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 5 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
37b3225
add a test tool deleting output
bernt-matthias 23b8cc2
JobWrapper: use correct fail method
bernt-matthias 55e333d
remove output from test expected to fail
bernt-matthias 45bd7ad
more precise error message
bernt-matthias 4378b77
Update test/functional/tools/tool_deleting_output.xml
bernt-matthias 1936272
Update test/functional/tools/tool_deleting_output.xml
bernt-matthias 131576f
always check output file existence
bernt-matthias 9e46bd3
reformulations in test tool help and comment
bernt-matthias d420389
only enumerate non-purged
bernt-matthias File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,26 @@ | ||
| <tool id="tool_deleting_output" name="tool_deleting_output" version="0.1.0" license="AFL-3.0" profile="21.09"> | ||
| <command><![CDATA[ | ||
| rm '$out_file1'; ## don't use && since otherwise the framework test fails | ||
| exit $exit_code | ||
| ]]></command> | ||
| <inputs> | ||
| <param name="exit_code" type="integer" value="0"/> | ||
| </inputs> | ||
| <outputs> | ||
| <data name="out_file1" format="txt" /> | ||
| </outputs> | ||
| <tests> | ||
| <test expect_exit_code="0" expect_failure="true"> | ||
| <param name="exit_code" value="0"/> | ||
| </test> | ||
| <test expect_exit_code="1" expect_failure="true"> | ||
| <param name="exit_code" value="1"/> | ||
| </test> | ||
| </tests> | ||
| <help><![CDATA[ | ||
| This tool tests what happens if the underlying program removes the output data set, | ||
| it should fail independent of the exit code and the exit code should be correctly checked. | ||
|
|
||
| With outputs_to_working_directory this provoked https://github.com/galaxyproject/galaxy/issues/14206 | ||
| ]]></help> | ||
| </tool> | ||
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.