mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-26 00:32:41 +01:00
Fix coverage for NoseTestEngine
Summary: In case that the $source_path is `.` or empty, it produces filenames that look like `./foo.py`, which differential doesn't like. Test Plan: arc diff, see coverage data. Reviewers: epriestley Reviewed By: epriestley CC: Korvin, aran Differential Revision: https://secure.phabricator.com/D7181
This commit is contained in:
parent
aebcd7a985
commit
0b8ea973ae
1 changed files with 1 additions and 0 deletions
|
@ -127,6 +127,7 @@ final class NoseTestEngine extends ArcanistBaseUnitTestEngine {
|
|||
$relative_path = explode(".", $class->getAttribute("filename"));
|
||||
array_pop($relative_path);
|
||||
$relative_path = $source_path .'/'. implode("/", $relative_path);
|
||||
$relative_path = Filesystem::readablePath($relative_path);
|
||||
|
||||
// first we check if the path is a directory (a Python package), if it is
|
||||
// set relative and absolute paths to have __init__.py at the end.
|
||||
|
|
Loading…
Reference in a new issue