-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Propagate exit code from the run() and do_() commandline methods
- Loading branch information
Showing
5 changed files
with
37 additions
and
6 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 @@ | ||
Feature: `osc service` command | ||
|
||
|
||
Scenario: Run `osc service manualrun` | ||
Given I set working directory to "{context.osc.temp}" | ||
And I execute osc with args "checkout test:factory test-pkgA" | ||
And I set working directory to "{context.osc.temp}/test:factory/test-pkgA" | ||
And I copy file "{context.fixtures}/pac/_service-manual-exit-2" to "{context.osc.temp}/test:factory/test-pkgA/_service" | ||
When I execute osc with args "service manualrun" | ||
Then the exit code is 2 |
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 @@ | ||
<services> | ||
<service name="replace_using_env" mode="manual"> | ||
<param name="eval"> | ||
echo Forcing error | ||
exit 2 | ||
</param> | ||
<param name="file">filename</param> | ||
</service> | ||
</services> |
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