1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-23 21:36:13 +01:00

Merge pull request #1246 from dmach/fix-rdiff-no-new-project

rdiff: Fix traceback when new project is not specified
This commit is contained in:
Daniel Mach 2023-02-02 10:53:27 +01:00 committed by GitHub
commit 40a24d3185
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,26 @@
Feature: `osc rdiff` command
# common steps for all scenarios
Background:
Given I set working directory to "{context.osc.temp}"
Scenario: Run `osc rdiff <project>/<package> <target-project>/<target-package>`
When I execute osc with args "rdiff test:factory/test-pkgA test:factory/test-pkgA"
Then the exit code is 0
Scenario: Run `osc rdiff <project>/<package> <target-project>`
When I execute osc with args "rdiff test:factory/test-pkgA test:factory"
Then the exit code is 0
Scenario: Run `osc rdiff <project>/<package>`
When I execute osc with args "rdiff test:factory/test-pkgA"
Then the exit code is 0
Scenario: Run `osc rdiff <project>/<package> --change`
When I execute osc with args "rdiff test:factory/test-pkgA --change=1"
Then the exit code is 0

View File

@ -4200,6 +4200,9 @@ Please submit there instead, or use --nodevelproject to force direct submission.
) )
ensure_no_remaining_args(args) ensure_no_remaining_args(args)
if not new_project:
new_project = old_project
if not new_package: if not new_package:
new_package = old_package new_package = old_package