Open Bug 1382346 Opened 7 years ago Updated 2 years ago

Allow original error message to bubble up in telemetry harness

Categories

(Toolkit :: Telemetry, enhancement, P4)

enhancement

Tracking

()

Tracking Status
firefox57 --- unaffected

People

(Reporter: Silne30, Unassigned)

Details

Attachments

(1 file)

The harness is swallowing the original error message in testcase.py.
Priority: -- → P3
Assignee: nobody → jdorlus
Status: NEW → ASSIGNED
Attachment #8890574 - Flags: review?(mjzffr)
Comment on attachment 8890574 [details]
Bug 1382346 - Raised original exception when ping fails to come in

https://reviewboard.mozilla.org/r/161722/#review167930

r+wc

::: toolkit/components/telemetry/tests/marionette/harness/telemetry_harness/testcase.py:56
(Diff revision 1)
>              try:
>                  Wait(self.marionette, 60).until(lambda t: len(self.ping_list) > 0)
>              except Exception as e:
> -                self.fail('Error generating ping: {}'.format(e.message))
> +                raise e

Remove the try-except block entirely. Instead, call `until` with a `message` kwarg that describes what the exception likely represents: e.g. `Wait(...).until(..., message="Error generating ping: ...")`
Attachment #8890574 - Flags: review?(mjzffr) → review+
Priority: P3 → P4
Assignee: jsdorlus → nobody
Status: ASSIGNED → NEW
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: