Open Bug 1801430 Opened 2 years ago Updated 2 years ago

[wpt-sync] Sync PR 37037 - [wptrunner] Allow expectation inheritance from `__dir__.ini`

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(Not tracked)

REOPENED

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 37037 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/37037
Details from upstream follow.

Jonathan Lee <jonathanjlee@google.com> wrote:

[wptrunner] Allow expectation inheritance from __dir__.ini

1 seems to imply a test without per-test metadata can inherit the expected key of an ancestor __dir__.ini, but this does not actually work currently. This change applies the metadata search the other properties use to expected and known_intermittent. Special care was taken to ensure expected and known_intermittent are retrieved from the same key-value node.

One use case for a directory-wide expectation is to suppress failures that share a common cause (e.g., flag-enabled functionality). This avoids the need to create per-test metadata files with repeated contents that are not ergonomic to update.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INVALID
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
You need to log in before you can comment on or make changes to this bug.