Skip to content
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

tests: fix parsing w/ path containing "-pa" or "-pS" (backport #2826) #2827

Merged
merged 1 commit into from
Nov 12, 2023

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Nov 12, 2023

This is an automatic backport of pull request #2826 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

The OutputTagExtract test case for tiff_test runs exiv2 two times,
with "-pa" and "-pS", and parses their outputs. To know which output to
parse, it checks for "-pa" and "-pS" in the string of the command being
run; considering that the command string contains the full path to the
test data, which is a subdirectory of the sources, this means that a
wrong parser will be used in case the full source path contains any of
"-pa" or "-pS" (e.g. "/build/some-path/exiv2/...").

Cheap fix for this: since "-pa"/"-pS" are options in the command string,
check for them using spaces around.

(cherry picked from commit 5f4ffdd)
@ghost
Copy link

ghost commented Nov 12, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

Copy link

codecov bot commented Nov 12, 2023

Codecov Report

Merging #2827 (b6e1674) into 0.28.x (72129e7) will not change coverage.
Report is 3 commits behind head on 0.28.x.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           0.28.x    #2827   +/-   ##
=======================================
  Coverage   63.99%   63.99%           
=======================================
  Files         103      103           
  Lines       22338    22338           
  Branches    10821    10821           
=======================================
  Hits        14296    14296           
  Misses       5818     5818           
  Partials     2224     2224           
Files Coverage Δ
src/sonymn_int.cpp 79.90% <ø> (ø)

@kmilos kmilos merged commit 1667bb9 into 0.28.x Nov 12, 2023
108 checks passed
@mergify mergify bot deleted the mergify/bp/0.28.x/pr-2826 branch November 12, 2023 17:31
@kmilos kmilos added this to the v0.28.2 milestone Jan 3, 2024
@kmilos kmilos added the testing Anything related to the tests and their infrastructure label Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Anything related to the tests and their infrastructure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants