1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-21 17:56:19 +02:00

Merge pull request #1233 from dmach/behave-test-rm-multiple-files

behave: Test rm on multiple files
This commit is contained in:
Daniel Mach 2023-01-26 09:26:57 +01:00 committed by GitHub
commit b718293dc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,19 @@
Feature: `osc rm` 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 rm` on multiple files
When I execute osc with args "rm test-pkgA.spec test-pkgA.changes"
Then the exit code is 0
And I execute osc with args "status"
And stdout is
"""
D test-pkgA.changes
D test-pkgA.spec
"""