From 2a5fbe457b34baceec82bf1be1d30df320244648 Mon Sep 17 00:00:00 2001 From: Daniel Mach Date: Thu, 26 Jan 2023 09:01:12 +0100 Subject: [PATCH] behave: Test rm on multiple files --- behave/features/rm.feature | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 behave/features/rm.feature diff --git a/behave/features/rm.feature b/behave/features/rm.feature new file mode 100644 index 00000000..e35b9425 --- /dev/null +++ b/behave/features/rm.feature @@ -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 + """