mirror of
https://github.com/openSUSE/osc.git
synced 2025-09-07 05:38:43 +02:00
mv: Fix regression
Moved Package.todo handling in one place. Fixed a situation when path to a file that doesn't exist is passed to Package
This commit is contained in:
21
behave/features/mv.feature
Normal file
21
behave/features/mv.feature
Normal file
@@ -0,0 +1,21 @@
|
||||
Feature: `osc mv` command
|
||||
|
||||
|
||||
# common steps for all scenarios
|
||||
Background:
|
||||
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"
|
||||
|
||||
|
||||
Scenario: Run `osc mv <file> <new-name>` in a package checkout
|
||||
When I execute osc with args "mv test-pkgA.changes new-name.changes"
|
||||
Then the exit code is 0
|
||||
And I execute osc with args "status"
|
||||
And stdout is
|
||||
"""
|
||||
A new-name.changes
|
||||
D test-pkgA.changes
|
||||
"""
|
||||
And file "{context.osc.temp}/test:factory/test-pkgA/test-pkgA.changes" does not exist
|
||||
And file "{context.osc.temp}/test:factory/test-pkgA/new-name.changes" exists
|
Reference in New Issue
Block a user