mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-11 21:29:25 +01:00
Merge pull request #1615 from dmach/fix-behave-repairwc
Fix behave test for repairwc command
This commit is contained in:
commit
735bab7de2
4
.github/workflows/tests.yaml
vendored
4
.github/workflows/tests.yaml
vendored
@ -37,7 +37,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
pip3 config set global.break-system-packages 1
|
pip3 config set global.break-system-packages 1
|
||||||
pip3 install -e .
|
pip3 install -e .
|
||||||
python3 setup.py test
|
python3 -m unittest
|
||||||
|
|
||||||
unit:
|
unit:
|
||||||
name: "unit"
|
name: "unit"
|
||||||
@ -109,7 +109,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
pip3 config set global.break-system-packages 1
|
pip3 config set global.break-system-packages 1
|
||||||
pip3 install -e .
|
pip3 install -e .
|
||||||
python3 setup.py test
|
python3 -m unittest
|
||||||
|
|
||||||
- name: 'Generate coverage reports (openSUSE Tumbleweed)'
|
- name: 'Generate coverage reports (openSUSE Tumbleweed)'
|
||||||
if: ${{ contains(matrix.container, '/opensuse/tumbleweed') }}
|
if: ${{ contains(matrix.container, '/opensuse/tumbleweed') }}
|
||||||
|
@ -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 set working directory to "{context.osc.temp}/test:factory"
|
||||||
And I remove file "{context.osc.temp}/test:factory/.osc/_osclib_version"
|
And I remove file "{context.osc.temp}/test:factory/.osc/_osclib_version"
|
||||||
When I execute osc with args "status"
|
When I execute osc with args "status"
|
||||||
Then the exit code is 0
|
# assume store version 1.0 for a project
|
||||||
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"
|
|
||||||
Then the exit code is 0
|
Then the exit code is 0
|
||||||
And file "{context.osc.temp}/test:factory/.osc/_osclib_version" exists
|
And file "{context.osc.temp}/test:factory/.osc/_osclib_version" exists
|
||||||
|
|
||||||
@ -45,7 +41,5 @@ Scenario: Run `osc repairwc` on a package without .osc/_osclib_version
|
|||||||
Then the exit code is 1
|
Then the exit code is 1
|
||||||
And file "{context.osc.temp}/test:factory/test-pkgA/.osc/_osclib_version" does not exist
|
And file "{context.osc.temp}/test:factory/test-pkgA/.osc/_osclib_version" does not exist
|
||||||
When I execute osc with args "repairwc"
|
When I execute osc with args "repairwc"
|
||||||
Then the exit code is 0
|
# no assumption about the store version for a package
|
||||||
When I execute osc with args "status"
|
Then the exit code is 1
|
||||||
Then the exit code is 0
|
|
||||||
And file "{context.osc.temp}/test:factory/test-pkgA/.osc/_osclib_version" exists
|
|
||||||
|
@ -192,7 +192,7 @@ install -Dm0644 oscrc.5 %{buildroot}%{_mandir}/man5/oscrc.5
|
|||||||
%python3_fix_shebang
|
%python3_fix_shebang
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{use_python} setup.py test
|
%{use_python} -m unittest
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user