mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-12-22 21:40:54 +01:00
Skip unit tests if ArcanistLinter::getCacheVersion
throws an ArcanistUsageException
Summary: Fixes T4288 Test Plan: N/A Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley CC: Korvin, epriestley, aran Maniphest Tasks: T4288 Differential Revision: https://secure.phabricator.com/D7913
This commit is contained in:
parent
66e3614f69
commit
ef598794a8
1 changed files with 2 additions and 0 deletions
|
@ -119,6 +119,8 @@ abstract class ArcanistLinterTestCase extends ArcanistPhutilTestCase {
|
|||
$caught_exception = true;
|
||||
}
|
||||
}
|
||||
} else if ($exception instanceof ArcanistUsageException) {
|
||||
$this->assertSkipped($exception->getMessage());
|
||||
}
|
||||
$exception_message = $exception->getMessage()."\n\n".
|
||||
$exception->getTraceAsString();
|
||||
|
|
Loading…
Reference in a new issue