mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-26 08:42: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:
parent
2ba9f34f5c
commit
29c8ff9ddf
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue