IMPACTED_TESTS does not work with git

NEW
Unassigned

Status

defect
P3
normal
2 years ago
Last year

People

(Reporter: ato, Unassigned)

Tracking

(Blocks 1 bug)

Version 3
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

The TestResolver class uses self.vcs.get_outgoing_files('AM')
[1] to determine which files have been added or modified when the
"what" argument to "./mach test" is empty.  This falls back to the
IMPACTED_TESTS annotations and is meant to run the tests associated
with the modified files.

Steps to reproduce are to inspect the return value of this line.
In a git repository it is always an empty array.

  [1] https://searchfox.org/mozilla-central/rev/0bc3300a3abc4b12f14bd0ddf77ce8aa8125043c/testing/mozbase/moztest/moztest/resolve.py#412
Blocks: 1426133
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.