Repository navigation
msautotest: Fix interpretation of test output comparison in mstestlib - #7249
Merged
geographika merged 1 commit intoMar 6, 2025
Merged
Conversation
This fixes a regression from 64a706f were a feature to skip some differences in test output was incompletely removed. Before this fix it will skip all non-matching results and report them as success.
Member
|
great catch @PPazderski ! |
Member
|
@PPazderski - thanks for spotting this. Many of the images match, but have different binary representations, so it looks like the vagrant and Docker outputs aren't identical (possibly due to slightly different configurations). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The recent change 64a706f introduced a severe regression on msautotest.
At the moment it would not detect changes in test output in many cases. You can test this by changing any textual expected result file.
For example take
msautotest/config/expected/missing_conf.txt, rewrite the expected error message, run the test and see how it still succeed.The issue is how the comparison result is currently interpreted
MapServer/msautotest/pymod/mstestlib.py
Lines 725 to 742 in 4121426
With the removal of the extra
ignore_comparison_resultparameter the first if block is always considered. The compare result is either== "match"and the test successful or!= "match"and the difference ignored and the test also succesful.Right now there is no way to enter any of the other elif blocks.