Closed
Bug 1093912
Opened 10 years ago
Closed 10 years ago
can't run just one mochitest via "./mach mochitest-b2g-desktop"
Categories
(Testing :: Mochitest, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 927889
People
(Reporter: geekboy, Unassigned)
Details
I'm trying to debug a mochitest on b2g desktop and I can't run a single test (only a whole directory). I tried: > ./mach mochitest-b2g-desktop dom/base/test/test_bug704320.html ... and it gives weird errors like: TEST-UNEXPECTED-FAIL, Exception caught: Permission denied to access property 'TestRunner', at: http://mochi.test:8888/tests/SimpleTest/SimpleTest.js (27), location: http://mochi.test:8888/tests/dom/base/test/test_bug704320.html?autorun=1&closeWhenDone=1&logFile=%2Fhome%2Fsstamm%2Fsrc%2Fmozilla-central%2Fobj-b2gdesktop%2F_tests%2Ftesting%2Fmochitest%2Fmochitest.log&fileLevel=INFO&consoleLevel=INFO&manifestFile=tests.json&dumpOutputDirectory=%2Ftmp and JavaScript error: http://mochi.test:8888/tests/SimpleTest/SimpleTest.js, line 48: Error: Permission denied to access property 'TestRunner' Test runs fine via firefox and the mochitest-plain target in mach. In addition, I can run all of dom/base/test successfully, just not the single test file.
Jonathan & Andrew, I think these mach targets fall under our purview don't they? Can y'all see what's going on here?
Flags: needinfo?(jgriffin)
Comment 3•10 years ago
|
||
This has been open for some time, and it's not a problem with the mach target, but a more fundamental problem related to b2g desktop's architecture itself and the fact that the mochitest harness has completely different behaviour is you only pass in a single test. There's a patch to fix it but it breaks xbl tests on b2g so it never got landed. IMO this isn't worth fixing (due to b2g desktop's impending retirement), but if someone wants to drive bug 927889 I'd be happy to help them out. The workaround is to edit a manifest.ini to only contain the test you care about and pass that in instead.
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: needinfo?(ahalberstadt)
Resolution: --- → DUPLICATE
Comment 4•10 years ago
|
||
FYI the single test behavior was changed in bug 1014062 so that the harness now treats single tests the same way as multiple tests.
You need to log in
before you can comment on or make changes to this bug.
Description
•