]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Fix `arc unit` when running from non-root directory
authorvrana <jakubv@fb.com>
Fri, 1 Jun 2012 17:59:34 +0000 (10:59 -0700)
committervrana <jakubv@fb.com>
Fri, 1 Jun 2012 18:19:52 +0000 (11:19 -0700)
Summary:
`$this->getPaths()` gives us paths relative to repository root.
We resolve them relative to cwd.

Test Plan: [src] `arc unit difference`

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Koolvin
Differential Revision: https://secure.phabricator.com/D2634

src/unit/engine/phutil/PhutilUnitTestEngine.php

index a0021a9b44bcbafe59d2cfe04c0c142d73314181..b5bb4e2578267c8806cd5cc1db2d26ee9aa1711b 100644 (file)
@@ -48,7 +48,7 @@ final class PhutilUnitTestEngine extends ArcanistBaseUnitTestEngine {
           "      operation is not supported.");
       }
 
-      $path = Filesystem::resolvePath($path);
+      $path = Filesystem::resolvePath($path, dirname($library_root));
 
       if (!is_dir($path)) {
         $path = dirname($path);