From: vrana Date: Wed, 12 Sep 2012 17:39:39 +0000 (-0700) Subject: Skip linter tests with usage problems X-Git-Tag: conduit-6~127 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=a5e2f819289d4a3d4a015a7c067d164050dddf21;p=arcanist.git Skip linter tests with usage problems Summary: D3480#comment-1 Test Plan: This diff. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3481 --- diff --git a/src/lint/linter/__tests__/ArcanistLinterTestCase.php b/src/lint/linter/__tests__/ArcanistLinterTestCase.php index 6e6da640..ece66542 100644 --- a/src/lint/linter/__tests__/ArcanistLinterTestCase.php +++ b/src/lint/linter/__tests__/ArcanistLinterTestCase.php @@ -100,6 +100,8 @@ abstract class ArcanistLinterTestCase extends ArcanistTestCase { } catch (ArcanistPhutilTestTerminatedException $ex) { throw $ex; + } catch (ArcanistUsageException $ex) { + $this->assertSkipped($ex->getMessage()); } catch (Exception $exception) { $caught_exception = true; $exception_message = $exception->getMessage()."\n\n".