All users were logged out of Bugzilla on October 13th, 2018

UnboundLocalError: local variable 'result' referenced before assignment when running mochitest-browser

NEW
Unassigned

Status

4 years ago
9 months ago

People

(Reporter: birtles, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

4 years ago
On Win 8.1 with current MozillaBuild (1.10.0) running the following command:

  mach mochitest-browser browser/devtools/storage/test/

gives the following result:

From _tests: Kept 33961 existing; Added/updated 4; Removed 0 files and 0 directo
ries.
TEST-INFO | checking window state
Browser Chrome Test Summary
        Passed: 0
        Failed: 0
        Todo: 0
*** End BrowserChrome Test Results ***
Error running mach:

    ['mochitest-browser', 'browser/devtools/storage/test/']

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 should consider filing a bug for this issue.

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

The details of the failure are as follows:

UnboundLocalError: local variable 'result' referenced before assignment

  File "c:\moz\src2\testing/mochitest/mach_commands.py", line 668, in run_mochit
est_browser
    return self.run_mochitest(test_paths, 'browser', **kwargs)
  File "c:\moz\src2\testing/mochitest/mach_commands.py", line 791, in run_mochit
est
    test_paths=test_paths, suite=flavor, **kwargs)
  File "c:\moz\src2\testing/mochitest/mach_commands.py", line 392, in run_deskto
p_test
    result = runner.runTests(options)
  File "c:\moz\src2\obj-debug\_tests\testing\mochitest\runtests.py", line 1771,
in runTests
    return result

This could be a dupe of bug 1103159. I'm not specifying --e10s or --total-chunks but perhaps that is set by default now?
(Assignee)

Updated

9 months ago
Component: Mochitest Chrome → Mochitest
Product: Testing → Testing
You need to log in before you can comment on or make changes to this bug.