From: Joshua Spence Date: Thu, 2 Jan 2014 14:24:15 +0000 (+1100) Subject: Allow tests to be executed in the root library directory X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=90a5a8512e2008d665942a65e4f9b293623f6079;p=arcanist.git Allow tests to be executed in the root library directory See: Reviewed by: epriestley --- diff --git a/src/unit/engine/PhutilUnitTestEngine.php b/src/unit/engine/PhutilUnitTestEngine.php index 1a3a110c..dbd3c9d3 100644 --- a/src/unit/engine/PhutilUnitTestEngine.php +++ b/src/unit/engine/PhutilUnitTestEngine.php @@ -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; }