Closed Bug 1598920 Opened 5 years ago Closed 4 years ago

mach wpt fails when pwd is not the project root

Categories

(Testing :: Mozbase, defect, P2)

defect

Tracking

(firefox73 fixed)

RESOLVED FIXED
mozilla73
Tracking Status
firefox73 --- fixed

People

(Reporter: ng, Assigned: gbrown)

Details

(Whiteboard: dev-prod-2020)

Attachments

(1 file)

(Just in case it is relavent: I am on Linux, and targeting Geckoview/Firefox Android on the x86-64 emulator)

When running mach wpt ${test_name} from ${project_root}/testing/web-platform/tests I am getting the following error:

IOError: [Errno 2] No such file or directory: 'testing/config/tooltool-manifests/linux64/hostutils.manifest'

  File "/home/ng/sync/hg/mozilla-unified/testing/web-platform/mach_commands.py", line 309, in run_wpt
    return self.run_web_platform_tests(**params)
  File "/home/ng/sync/hg/mozilla-unified/testing/web-platform/mach_commands.py", line 301, in run_web_platform_tests
    return wpt_runner.run(logger, **params)
  File "/home/ng/sync/hg/mozilla-unified/testing/web-platform/mach_commands_base.py", line 36, in run
    kwargs = wptcommandline.check_args(self.setup.kwargs_common(kwargs))
  File "/home/ng/sync/hg/mozilla-unified/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/ng/sync/hg/mozilla-unified/testing/mozbase/mozrunner/mozrunner/devices/android_device.py", line 284, in verify_android_device
    _maybe_update_host_utils(build_obj)
  File "/home/ng/sync/hg/mozilla-unified/testing/mozbase/mozrunner/mozrunner/devices/android_device.py", line 140, in _maybe_update_host_utils
    with open(manifest_path, 'r') as f:
Component: Mach Core → web-platform-tests
Product: Firefox Build System → Testing

The priority flag is not set for this bug.
:jgraham, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(james)

I think the problem here is that https://searchfox.org/mozilla-central/source/testing/mozbase/mozrunner/mozrunner/devices/android_device.py#32 defines a relative path, which is later used indiscriminately. I think you want to add build_obj.topsrcdir to all the cases where that or TOOLTOOL_PATH are used to construct full paths.

Component: web-platform-tests → Mozbase
Flags: needinfo?(james) → needinfo?(gbrown)

Thanks jgraham; that sounds right. I should be able to sort it out.

Assignee: nobody → gbrown
Flags: needinfo?(gbrown)
Priority: -- → P2

Join <topsrcdir> with MANIFEST_PATH in android_device.py. I was concerned about TOOLTOOL_PATH
also, but that is already consistently joined with <topsrcdir> before use. I think these
are the only cases that needed attention.

Pushed by gbrown@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5bbd678617bb
Enable android_device.py to find file paths regardless of cwd; r=jgraham
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla73
Whiteboard: dev-prod-2020
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: