Skip to content

Commit

Permalink
Fix behave test for repairwc command
Browse files Browse the repository at this point in the history
  • Loading branch information
dmach committed Aug 27, 2024
1 parent f634c9f commit 0d6f71a
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions behave/features/repairwc.feature
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ Scenario: Run `osc repairwc` on a project without .osc/_osclib_version
And I set working directory to "{context.osc.temp}/test:factory"
And I remove file "{context.osc.temp}/test:factory/.osc/_osclib_version"
When I execute osc with args "status"
Then the exit code is 0
And file "{context.osc.temp}/test:factory/.osc/_osclib_version" does not exist
When I execute osc with args "repairwc"
Then the exit code is 0
When I execute osc with args "status"
# assume store version 1.0 for a project
Then the exit code is 0
And file "{context.osc.temp}/test:factory/.osc/_osclib_version" exists

Expand All @@ -45,7 +41,5 @@ Scenario: Run `osc repairwc` on a package without .osc/_osclib_version
Then the exit code is 1
And file "{context.osc.temp}/test:factory/test-pkgA/.osc/_osclib_version" does not exist
When I execute osc with args "repairwc"
Then the exit code is 0
When I execute osc with args "status"
Then the exit code is 0
And file "{context.osc.temp}/test:factory/test-pkgA/.osc/_osclib_version" exists
# no assumption about the store version for a package
Then the exit code is 1

0 comments on commit 0d6f71a

Please sign in to comment.