Closed Bug 1863886 Opened 2 years ago Closed 2 years ago

Cannot run web-platform tests with product Chrome (TypeError: tuple indices must be integers or slices, not str)

Categories

(Testing :: web-platform-tests, defect)

defect

Tracking

(firefox-esr115 unaffected, firefox119 unaffected, firefox120 unaffected, firefox121 fixed)

RESOLVED FIXED
121 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox119 --- unaffected
firefox120 --- unaffected
firefox121 --- fixed

People

(Reporter: whimboo, Assigned: jgraham)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(2 files)

Here the command that I'm trying to run:

mach wpt --product chrome --browser-channel=experimental testing/web-platform/tests/webdriver/tests/classic/element_clear/

The failure that I get is the following:

TypeError: tuple indices must be integers or slices, not str

  File "/Users/henrik/code/gecko/testing/web-platform/mach_commands.py", line 560, in run_wpt
    return run_web_platform_tests(command_context, **params)
  File "/Users/henrik/code/gecko/testing/web-platform/mach_commands.py", line 548, in run_web_platform_tests
    return wpt_runner.run(logger, **params)
  File "/Users/henrik/code/gecko/testing/web-platform/mach_commands_base.py", line 57, in run
    kwargs = self.setup.kwargs_wptrun(kwargs)
  File "/Users/henrik/code/gecko/testing/web-platform/mach_commands.py", line 214, in kwargs_wptrun
    for key, value in list(iteritems(kwargs["test_paths"])):

Looks like this is related to some recent metadata handling changes?

Flags: needinfo?(james)
Summary: Cannot run web-platform tests with product Chrome → Cannot run web-platform tests with product Chrome (TypeError: tuple indices must be integers or slices, not str)

This started to return a tuple (browser_cls, kwargs)

Assignee: nobody → james
Status: NEW → ASSIGNED
Flags: needinfo?(james)
Pushed by james@hoppipolla.co.uk: https://hg.mozilla.org/integration/autoland/rev/c84e0dd5614d Update for wpt run.setup_wptrunner signature change, r=whimboo https://hg.mozilla.org/integration/autoland/rev/b1212bc13163 Remove usage of six from wpt mach_commands.py, r=whimboo
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
Duplicate of this bug: 1861914
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: