Closed Bug 1896724 Opened 2 years ago Closed 2 years ago

Fix multi-option for using custom browsertime args that contain a double-dash

Categories

(Testing :: Raptor, defect, P1)

defect

Tracking

(firefox128 fixed)

RESOLVED FIXED
128 Branch
Tracking Status
firefox128 --- fixed

People

(Reporter: sparky, Assigned: sparky)

References

Details

(Whiteboard: [fxp])

Attachments

(1 file)

Currently, if you run something like this: /mach raptor -t amazon --verbose --browsertime-arg firefox.geckodriverArgs='--marionette-port' --browsertime-arg firefox.geckodriverArgs=31415

Raptor would split the --marionette-port into a separate option that browsertime parses. Then an empty string gets passed as the geckodriverArg for the first option.

If you run something like this: ./mach raptor -t amazon --verbose --browsertime-arg firefox.geckodriverArgs='--marionette-port' --browsertime-arg firefox.geckodriverArgs=31415

Raptor would split the --marionette-port into a separate option that browsertime parses. Then an empty string gets passed as the geckodriverArg for the first option.

This patch fixes this issue by detecting when the value has a double-dash and passes the option joined with the = instead of split from it.

Assignee: nobody → gmierz2
Status: NEW → ASSIGNED
Attachment #9401735 - Attachment description: Bug 1896724 - Handle custom browsertime-arg settings that contain a double-dash. r?#perftest,aglavic → Bug 1896724 - Handle custom browsertime-arg settings that start with a dash. r?#perftest,aglavic
Pushed by gmierz2@outlook.com: https://hg.mozilla.org/integration/autoland/rev/af29dd639cf1 Handle custom browsertime-arg settings that start with a dash. r=aglavic,perftest-reviewers DONTBUILD
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: