1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-29 10:12:41 +01:00

Allow tests to be executed in the root library directory

See: <https://github.com/facebook/arcanist/pull/135>

Reviewed by: epriestley
This commit is contained in:
Joshua Spence 2014-01-03 01:24:15 +11:00 committed by epriestley
parent 488b8e365a
commit 90a5a8512e

View file

@ -81,7 +81,7 @@ final class PhutilUnitTestEngine extends ArcanistBaseUnitTestEngine {
$run_tests = array();
foreach ($symbols as $symbol) {
if (!preg_match('@/__tests__/@', $symbol['where'])) {
if (!preg_match('@(?:^|/)__tests__/@', $symbol['where'])) {
continue;
}