Closed Bug 1547983 Opened 6 years ago Closed 6 years ago

`./mach test <someMochiTestFile.html>` fails with `AttributeError: 'Namespace' object has no attribute 'flavor'`

Categories

(Testing :: Mochitest, defect)

defect
Not set
normal

Tracking

(firefox-esr60 unaffected, firefox67 unaffected, firefox68 fixed)

RESOLVED FIXED
mozilla68
Tracking Status
firefox-esr60 --- unaffected
firefox67 --- unaffected
firefox68 --- fixed

People

(Reporter: mbrodesser-Igalia, Assigned: ahal)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Command and error message:

$ ./mach test dom/base/test/test_bug116083.html
Error running mach:

    ['test', 'dom/base/test/test_bug116083.html']

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:

AttributeError: 'Namespace' object has no attribute 'flavor'

  File "/home/mirko/src/firefox/gecko/testing/mach_commands.py", line 365, in test
    argv=extra_args, test_objects=tests, **kwargs)
  File "/home/mirko/src/firefox/gecko/python/mach/mach/registrar.py", line 139, in dispatch
    return self._run_command_handler(handler, context=context, **kwargs)
  File "/home/mirko/src/firefox/gecko/python/mach/mach/registrar.py", line 96, in _run_command_handler
    result = fn(**kwargs)
  File "/home/mirko/src/firefox/gecko/testing/mochitest/mach_commands.py", line 475, in run_mochitest_general
    **harness_args)
  File "/home/mirko/src/firefox/gecko/testing/mochitest/mach_commands.py", line 143, in run_desktop_test
    if len(tests) == 1 and options.keep_open is None and options.flavor == 'plain':

Hi Andrew, can you please triage this?

Flags: needinfo?(ahal)
Assignee: nobody → ahal
Status: NEW → ASSIGNED
Component: General → Mochitest
Flags: needinfo?(ahal)
Product: Firefox Build System → Testing
Regressed by: 1546100
Pushed by ahalberstadt@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c9e6b400a1e0 [mochitest] Fix running a single mochitest-plain-clipboard/gpu test locally, r=jmaher
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: