1
0
Fork 0
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:
Joshua Spence 2014-01-09 09:25:35 -08:00 committed by epriestley
parent 66e3614f69
commit ef598794a8

View file

@ -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();