Fix issue where a test incorrectly reported as "Passed on Retry" #252
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.
Description
We found a bug where a test marked as "Passed on retry". This is happening when there are different tests with the same
scope
andname
. Currently,bktec
will usescope
andname
to identify a test. If there are 2 tests with the samescope
andname
it will treat those tests as the same test with 2 execution counts, leading to incorrect reporting. The initial implementation was made to follow the server-side implementation so thatbktec
can match a local test with the list of muted tests received from the server.This PR resolves the issues by introducing 2 different ways of identifying a test. When reading the result from test runner,
bktec
will identify a test usingscope
,name
andpath
to make sure tests with the samename
andscope
counted as separate test. However, when checking if a test is muted, it identifies the test usingscope
andname
only to follow the server-side implementation.This PR will resolve #236