1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-22 14:52:40 +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:
Joshua Spence 2014-01-08 16:23:58 -08:00 committed by epriestley
parent 90a5a8512e
commit e2234a5be9

View file

@ -8,7 +8,12 @@
abstract class ArcanistLinterTestCase extends ArcanistPhutilTestCase {
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);
}
}