mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 23:02:41 +01:00
Allow ArcanistLinterTestCase
to find "lint-test" files at an arbitrary depth
Summary: Self-explanatory Test Plan: N/A Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley CC: Korvin, epriestley, aran Differential Revision: https://secure.phabricator.com/D7910
This commit is contained in:
parent
90a5a8512e
commit
e2234a5be9
1 changed files with 6 additions and 1 deletions
|
@ -8,7 +8,12 @@
|
||||||
abstract class ArcanistLinterTestCase extends ArcanistPhutilTestCase {
|
abstract class ArcanistLinterTestCase extends ArcanistPhutilTestCase {
|
||||||
|
|
||||||
public function executeTestsInDirectory($root, ArcanistLinter $linter) {
|
public function executeTestsInDirectory($root, ArcanistLinter $linter) {
|
||||||
foreach (Filesystem::listDirectory($root, $hidden = false) as $file) {
|
$files = id(new FileFinder($root))
|
||||||
|
->withType('f')
|
||||||
|
->withSuffix('lint-test')
|
||||||
|
->find();
|
||||||
|
|
||||||
|
foreach ($files as $file) {
|
||||||
$this->lintFile($root.$file, $linter);
|
$this->lintFile($root.$file, $linter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue