Open Bug 1427596 Opened 6 years ago Updated 2 years ago

IMPACTED_TESTS does not work with git

Categories

(Testing :: General, defect, P3)

Version 3
defect

Tracking

(Not tracked)

People

(Reporter: ato, Unassigned)

References

(Blocks 1 open bug)

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
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.