1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-26 16:52:40 +01:00

Fix arc unit when running from non-root directory

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
This commit is contained in:
vrana 2012-06-01 10:59:34 -07:00
parent 2ba9f34f5c
commit 29c8ff9ddf

View file

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