Closed Bug 1556517 Opened 5 years ago Closed 5 years ago

`AttributeError: 'WebPlatformTestsRunnerSetup' object has no attribute '_mach_context'` when trying to run GeckoView wpt locally

Categories

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

Version 3
defect
Not set
normal

Tracking

(firefox69 fixed)

RESOLVED FIXED
mozilla69
Tracking Status
firefox69 --- fixed

People

(Reporter: botond, Assigned: gbrown)

Details

Attachments

(1 file)

STR

  1. Do an x86_64 Android build (with ac_add_options --enable-application=mobile/android and ac_add_options --target=x86_64-linux-android in the .mozconfig.
  2. Run ./mach android-emulator to launch the emulator.
  3. Run ./mach gradle geckoview:installWithGeckoBinariesDebugAndroidTest
  4. Run ./mach wpt --package-name org.mozilla.geckoview.test testing/web-platform/tests/html/browsers/history/the-history-interface/traverse_the_history_write_after_load_1.html

Expected results

The test is run in the GV test app in the emulator.

Actual results

I get the following exception:

AttributeError: 'WebPlatformTestsRunnerSetup' object has no attribute '_mach_context'

  File "/home/botond/dev/mozilla/refactoring/testing/web-platform/mach_commands.py", line 295, in run_wpt
    return self.run_web_platform_tests(**params)
  File "/home/botond/dev/mozilla/refactoring/testing/web-platform/mach_commands.py", line 287, in run_web_platform_tests
    return wpt_runner.run(logger, **params)
  File "/home/botond/dev/mozilla/refactoring/testing/web-platform/mach_commands_base.py", line 35, in run
    kwargs = wptcommandline.check_args(self.setup.kwargs_common(kwargs))
  File "/home/botond/dev/mozilla/refactoring/testing/web-platform/mach_commands.py", line 48, in kwargs_common
    verify_android_device(self, install=True, verbose=False, xre=True, app=package_name)
  File "/home/botond/dev/mozilla/refactoring/testing/mozbase/mozrunner/mozrunner/devices/android_device.py", line 254, in verify_android_device
    build_obj._mach_context.commands.dispatch('gradle',

It looks like I only get this error if I select "y" when the mach wpt command promts me:

Re-install geckoview AndroidTest? (Y/n)
No longer blocks: 1553045

Fails for me too.

mach mochitest --app=org.mozilla.geckoview.test offers the same option, but that works fine.

Assignee: nobody → gbrown
Pushed by gbrown@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c25b51617ef0
Avoid attribute error when installing geckoview from 'mach wpt'; r=KWierso
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla69
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: