`mach mochitest-plain` broken on Windows

RESOLVED WORKSFORME

Status

RESOLVED WORKSFORME
4 years ago
8 months ago

People

(Reporter: cpearce, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

4 years ago
It appears that `./mach mochitest` is broken on Windows 8.1:


$ ./mach mochitest-plain dom/media/test/
Error running mach:

    ['mochitest-plain', 'dom/media/test/']

The error occurred in mach itself. This is likely a bug in mach itself or a
fundamental problem with a loaded module.

Please consider filing a bug against mach by going to the URL:

    https://bugzilla.mozilla.org/enter_bug.cgi?product=Core&component=mach


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

The details of the failure are as follows:

ImportError: cannot import name MochitestArgumentParser

  File "c:\Users\cpearce\src\mozilla\purple\python/mach\mach\main.py", line 344, in run
    return self._run(argv)
  File "c:\Users\cpearce\src\mozilla\purple\python/mach\mach\main.py", line 390, in _run
    args = parser.parse_args(argv)
  File "c:\mozilla-build\python\lib\argparse.py", line 1694, in parse_args
    args, argv = self.parse_known_args(args, namespace)
  File "c:\mozilla-build\python\lib\argparse.py", line 1726, in parse_known_args
    namespace, args = self._parse_known_args(args, namespace)
  File "c:\mozilla-build\python\lib\argparse.py", line 1935, in _parse_known_args
    stop_index = consume_positionals(start_index)
  File "c:\mozilla-build\python\lib\argparse.py", line 1891, in consume_positionals
    take_action(action, args)
  File "c:\mozilla-build\python\lib\argparse.py", line 1800, in take_action
    action(self, namespace, argument_values, option_string)
  File "c:\Users\cpearce\src\mozilla\purple\python/mach\mach\dispatcher.py", line 172, in __call__
    if handler.parser:
  File "c:\Users\cpearce\src\mozilla\purple\python/mach\mach\base.py", line 123, in parser
    self._parser = self._parser()
  File "c:\Users\cpearce\src\mozilla\purple\testing/mochitest/mach_commands.py", line 328, in setup_argument_parser
    from mochitest_options import MochitestArgumentParser

./mach build and ./mach build binaries is still working. The same test commands work on my MacOSX 10.10 MBP.
(Reporter)

Comment 1

4 years ago
A clobber fixed it. My build must have been stale somehow, or I'd clobbered without building or something. -> User error.
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → WORKSFORME

Updated

8 months ago
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.