10000 Fix list options in configuration files. by Spacetown · Pull Request #612 · gcovr/gcovr · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix list options in configuration files. #612

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 18, 2022

Conversation

Spacetown
Copy link
Member

Fix options with more than one argument in configuration files.
The config key search-path was stored as a single value. The iteration was done on the characters of the last config entry instead of the path entries.

Only options with nargs="*" are fixed. If a option with e.g. 2 arguments is added (I don't think we will add this in the near future) the code has to be adapted.

Closes #608.

@Spacetown Spacetown added this to the 5.2 milestone Apr 16, 2022
@Spacetown Spacetown requested a review from latk April 16, 2022 20:54
@codecov
Copy link
codecov bot commented Apr 16, 2022

Codecov Report

Merging #612 (16f459e) into master (bdde94f) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #612   +/-   ##
=======================================
  Coverage   95.11%   95.11%           
=======================================
  Files          24       24           
  Lines        3317     3317           
  Branches      619      619           
=======================================
  Hits         3155     3155           
  Misses         92       92           
  Partials       70       70           
Flag Coverage Δ
ubuntu-18.04 93.90% <100.00%> (ø)
windows-2019 94.75% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
gcovr/configuration.py 99.66% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bdde94f...16f459e. Read the comment docs.

Copy link
Member
@latk latk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for fixing this!

@Spacetown Spacetown merged commit ba4de0e into gcovr:master Apr 18, 2022
@Spacetown Spacetown deleted the fix_search_path_in_config_file branch April 18, 2022 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using "search-path" in config file, __main__.py iterates over the individual characters of the path as a list of paths to search
2 participants
0