Closed Bug 1636351 Opened 2 months ago Closed 2 months ago

'mach mochitest <test>' fails: "AssertionError"


(Testing :: General, defect)

Version 3


(Not tracked)



(Reporter: gbrown, Assigned: gbrown)


(Blocks 1 open bug)


(Whiteboard: dev-prod-2020)

This appears to have broken recently:

$./mach mochitest testing/mochitest/tests/Harness_sanity
Test configuration changed. Regenerating backend.
 0:07.07 INFO Checking for ssltunnel processes...
 0:07.11 INFO Checking for xpcshell processes...
Error running mach:

    ['mochitest', 'testing/mochitest/tests/Harness_sanity']

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

The details of the failure are as follows:


  File "/home/gbrown/src/testing/mochitest/", line 433, in run_mochitest_general
  File "/home/gbrown/src/testing/mochitest/", line 143, in run_desktop_test
    result = mochitest.run_test_harness(parser, options)
  File "/home/gbrown/objdirs/firefox/_tests/testing/mochitest/", line 3171, in run_test_harness
    result = runner.runTests(options)
  File "/home/gbrown/objdirs/firefox/_tests/testing/mochitest/", line 2622, in runTests
    tests = self.getActiveTests(options)
  File "/home/gbrown/objdirs/firefox/_tests/testing/mochitest/", line 1515, in getActiveTests
    assert pathAbs.startswith(self.testRootAbs)

Debugging the assert, I see one path referencing the source tree and the other the objdir.

:bc reported that he does not have this problem, so I clobbered, cleared caches, rebuilt, etc (I had also soft linked my objdir to another filesystem recently -- now undone) -- and mach mochitest is working for me again. I don't know what the problem was.

Assignee: nobody → gbrown
Closed: 2 months ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.