Bug 1498245 - Call exit_func to raise any errors if parsing failed r=chutten
authorJan-Erik Rediger <jrediger@mozilla.com>
Thu, 11 Oct 2018 17:44:54 +0000
changeset 496507 a2a823a4e70774370332e612a7d12f9aa5456673
parent 496506 b57be7d7343c78e4484b03d98c4a1a21e03ea941
child 496508 5caf51de3bc86a59b0c6ce236456ffc5685bcf06
push id9984
push userffxbld-merge
push dateMon, 15 Oct 2018 21:07:35 +0000
treeherdermozilla-beta@183d27ea8570 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerschutten
bugs1498245
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1498245 - Call exit_func to raise any errors if parsing failed r=chutten Differential Revision: https://phabricator.services.mozilla.com/D8386
toolkit/components/telemetry/tests/python/test_parse_scalars.py
--- a/toolkit/components/telemetry/tests/python/test_parse_scalars.py
+++ b/toolkit/components/telemetry/tests/python/test_parse_scalars.py
@@ -40,16 +40,17 @@ notification_emails:
 bug_numbers:
   - 12345
 """
         scalar = load_scalar(SAMPLE_SCALAR_VALID_ADDRESSES)
         sclr = parse_scalars.ScalarType("CATEGORY",
                                         "PROVE",
                                         scalar,
                                         strict_type_checks=True)
+        ParserError.exit_func()
 
         self.assertEqual(sclr.notification_emails, ["test01@mozilla.com", "test02@mozilla.com"])
 
     def test_invalid_email_address(self):
         SAMPLE_SCALAR_INVALID_ADDRESSES = """
 description: A nice one-line description.
 expires: never
   - 'main'