mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-26 00:32:41 +01:00
Fix bug with arc unit --everything
when coverage is available
Summary: We don't set $paths when running --everything. Test Plan: Ran `arc unit --everything` with coverage. Reviewers: vrana Reviewed By: vrana CC: aran Differential Revision: https://secure.phabricator.com/D5260
This commit is contained in:
parent
901f12dcb9
commit
5296bf529f
1 changed files with 6 additions and 2 deletions
|
@ -508,8 +508,12 @@ abstract class ArcanistPhutilTestCase {
|
|||
$coverage[substr($file, strlen($this->projectRoot) + 1)] = $str;
|
||||
}
|
||||
|
||||
// Only keep coverage information for files modified by the change.
|
||||
$coverage = array_select_keys($coverage, $this->paths);
|
||||
// Only keep coverage information for files modified by the change. In
|
||||
// the case of --everything, we won't have paths, so just return all the
|
||||
// coverage data.
|
||||
if ($this->paths) {
|
||||
$coverage = array_select_keys($coverage, $this->paths);
|
||||
}
|
||||
|
||||
return $coverage;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue