mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-10 08:52:39 +01:00
Fix lint tests after D3756
Test Plan: Threw normal exception, saw failed test. Threw usage exception, saw skipped test. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3761
This commit is contained in:
parent
7cb3551dc7
commit
262423b5a8
1 changed files with 10 additions and 2 deletions
|
@ -100,10 +100,18 @@ abstract class ArcanistLinterTestCase extends ArcanistTestCase {
|
|||
|
||||
} catch (ArcanistPhutilTestTerminatedException $ex) {
|
||||
throw $ex;
|
||||
} catch (ArcanistUsageException $ex) {
|
||||
$this->assertSkipped($ex->getMessage());
|
||||
} catch (Exception $exception) {
|
||||
$caught_exception = true;
|
||||
if ($exception instanceof PhutilAggregateException) {
|
||||
$caught_exception = false;
|
||||
foreach ($exception->getExceptions() as $ex) {
|
||||
if ($ex instanceof ArcanistUsageException) {
|
||||
$this->assertSkipped($ex->getMessage());
|
||||
} else {
|
||||
$caught_exception = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
$exception_message = $exception->getMessage()."\n\n".
|
||||
$exception->getTraceAsString();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue