-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
linktobranch: Migrate to pop_project_package_from_args()
- Loading branch information
Showing
2 changed files
with
39 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Feature: `osc linktobranch` command | ||
|
||
|
||
# common steps for all scenarios | ||
Background: | ||
Given I set working directory to "{context.osc.temp}" | ||
And I execute osc with args "linkpac test:factory/test-pkgA home:Admin" | ||
|
||
|
||
@destructive | ||
Scenario: Run `osc linktobranch <project> <package>` | ||
When I execute osc with args "linktobranch home:Admin test-pkgA" | ||
Then the exit code is 0 | ||
|
||
|
||
@destructive | ||
Scenario: Run `osc linktobranch <project>` | ||
When I execute osc with args "linktobranch home:Admin" | ||
Then the exit code is 1 | ||
|
||
|
||
@destructive | ||
Scenario: Run `osc linktobranch` from a package working copy | ||
Given I execute osc with args "co home:Admin/test-pkgA" | ||
And I set working directory to "{context.osc.temp}/home:Admin/test-pkgA" | ||
When I execute osc with args "linktobranch" | ||
Then the exit code is 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