mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 14:52:40 +01:00
Allow arc unit --everything
to work without a base commit
Summary: Fixes T2461. Similarly to `arc lint --everything`, `arc unit --everything` should work without a base commit. Test Plan: Removed the `.git/arc/default-relative-commit` file and ran `arc unit --everything`. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T2461 Differential Revision: https://secure.phabricator.com/D11459
This commit is contained in:
parent
937861ce58
commit
0b22838cca
1 changed files with 5 additions and 1 deletions
|
@ -130,7 +130,11 @@ EOTEXT
|
|||
'flag runs every test.');
|
||||
}
|
||||
|
||||
$paths = $this->selectPathsForWorkflow($paths, $rev);
|
||||
if ($everything) {
|
||||
$paths = iterator_to_array($this->getRepositoryApi()->getAllFiles());
|
||||
} else {
|
||||
$paths = $this->selectPathsForWorkflow($paths, $rev);
|
||||
}
|
||||
|
||||
if (!class_exists($engine_class) ||
|
||||
!is_subclass_of($engine_class, 'ArcanistUnitTestEngine')) {
|
||||
|
|
Loading…
Reference in a new issue