Closed bernhardkaindl closed 10 months ago
Pytest Code coverage comment for Python 2.7
Tests | Skipped | Failures | Errors | Time |
---|---|---|---|---|
19 | 1 :zzz: | 0 :x: | 0 :fire: | 2.273s :stopwatch: |
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
942bc97
) 58.44% compared to head (2649c4a
) 84.90%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Python3 coverage comment from https://github.com/marketplace/actions/pytest-coverage-comment
Tests | Skipped | Failures | Errors | Time |
---|---|---|---|---|
15 | 0 :zzz: | 0 :x: | 0 :fire: | 0.965s :stopwatch: |
Note on the test for this change:
The change in this PR is covered by two different container-based tests.
These are not unit tests, but tests which run bugtool as an external process in a container and ensure that the requested functionality is not broken by checking that /etc/systemd is still archived into a tarball inside the main bugball.
These are the links to the two lines (one for tar output archives, one for zip output archives) in the simple shell script based test (which runs inside a container) that extracts and later verifies the contents of the /etc/systemd.tar tarball in the output archive:
https://github.com/xenserver/status-report/actions/runs/7500658225/job/20419801112?pr=48#step:7:26 https://github.com/xenserver/status-report/actions/runs/7500658225/job/20419801112?pr=48#step:7:66
The same from the Python2-based namespace container test:
https://github.com/xenserver/status-report/actions/runs/7500658225/job/20419801391?pr=48#step:5:92 https://github.com/xenserver/status-report/actions/runs/7500658225/job/20419801391?pr=48#step:5:92
Commit message:
For CP-45506 (Package /etc/systemd into a tarball), I had assumed that I'd have to move the tree_output() for /etc/systemd to after where the tarball for /etc/systemd is declared, but this was not needed.
Moving it had the side effect that in interactive mode (a question if each individual file shall be collected - hundreds of questions usually), the /etc/systemd tarball was simply always collected.
This commit fixes this by reverting this move, back to the original location of this line, to before the question if the files in /etc/systemd/* shall be collected.