]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Skip linter tests with usage problems
authorvrana <jakubv@fb.com>
Wed, 12 Sep 2012 17:39:39 +0000 (10:39 -0700)
committervrana <jakubv@fb.com>
Wed, 12 Sep 2012 17:56:00 +0000 (10:56 -0700)
Summary: D3480#comment-1

Test Plan: This diff.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D3481

src/lint/linter/__tests__/ArcanistLinterTestCase.php

index 6e6da6408e2a9b6c3786fb65bb195bdbc1ba1272..ece66542e6456104d4d1cdba03b9e98e2f901483 100644 (file)
@@ -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".