Closed Bug 1623965 Opened 5 years ago Closed 5 years ago

Error running mach: ['test', 'dom/serviceworkers']

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(firefox77 fixed)

RESOLVED FIXED
mozilla77
Tracking Status
firefox77 --- fixed

People

(Reporter: siddhantagarwal99, Assigned: arai, NeedInfo)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36

Steps to reproduce:

./mach test dom/serviceworkers

Actual results:

Error running mach:

['test', 'dom/serviceworkers']

The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.
You can invoke |./mach busted| to check if this issue is already on file. If it
isn't, please use |./mach busted file| to report it. If |./mach busted| is
misbehaving, you can also inspect the dependencies of bug 1543241.

If filing a bug, please include the full output of mach, including this error
message.

The details of the failure are as follows:

Exception: Binary expected at /home/grtsid/work/src/mozilla-central/obj-x86_64-pc-linux-gnu/dist/bin/firefox does not exist.

File "/home/grtsid/work/src/mozilla-central/testing/mach_commands.py", line 388, in test
argv=extra_args, test_objects=tests, **kwargs)
File "/home/grtsid/work/src/mozilla-central/python/mach/mach/registrar.py", line 152, in dispatch
return self._run_command_handler(handler, context=context, **kwargs)
File "/home/grtsid/work/src/mozilla-central/python/mach/mach/registrar.py", line 109, in _run_command_handler
result = fn(**kwargs)
File "/home/grtsid/work/src/mozilla-central/testing/mochitest/mach_commands.py", line 447, in run_mochitest_general
**harness_args)
File "/home/grtsid/work/src/mozilla-central/testing/mochitest/mach_commands.py", line 142, in run_desktop_test
result = mochitest.run_test_harness(parser, options)
File "/home/grtsid/work/src/mozilla-central/obj-x86_64-pc-linux-gnu/_tests/testing/mochitest/runtests.py", line 3146, in run_test_harness
parser.validate(options)
File "/home/grtsid/work/src/mozilla-central/obj-x86_64-pc-linux-gnu/_tests/testing/mochitest/mochitest_options.py", line 1059, in validate
args = container.validate(self, args, self.context)
File "/home/grtsid/work/src/mozilla-central/obj-x86_64-pc-linux-gnu/_tests/testing/mochitest/mochitest_options.py", line 635, in validate
options.app = build_obj.get_binary_path()
File "/home/grtsid/work/src/mozilla-central/python/mozbuild/mozbuild/base.py", line 559, in get_binary_path
raise Exception('Binary expected at %s does not exist.' % path)

Expected results:

Test locally

the error means you haven't built the binary.
have you run ./mach build ?
did it finish successfully?

I leave this bug opened, given I think the error message can be improved.
(I saw some newcomer hit this issue)

Flags: needinfo?(siddhantagarwal99)
Assignee: nobody → arai.unmht
Attachment #9134865 - Attachment description: Bug 1623965 - Improve error message when binary not found while testing. r?glandium! → Bug 1623965 - Improve error message when binary not found while testing. r?glandium
Attachment #9134865 - Attachment description: Bug 1623965 - Improve error message when binary not found while testing. r?glandium → Bug 1623965 - Improve error message when binary not found while testing. r?glandium!
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/d759b2023478 Improve error message when binary not found while testing. r=glandium,remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,Bebe,whimboo
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: