Closed Bug 1557417 Opened 5 years ago Closed 5 years ago

Android 'mach mochitest' fails: "A cross-directory support file path noted in a test manifest does not appear in any other manifest."

Categories

(Testing :: Mochitest, defect)

57 Branch
defect
Not set
normal

Tracking

(firefox69 fixed)

RESOLVED FIXED
mozilla69
Tracking Status
firefox69 --- fixed

People

(Reporter: gbrown, Assigned: gbrown)

References

Details

Attachments

(1 file)

In a Firefox for Android context, 'mach mochitest' consistently fails:

$ ./mach mochitest
Error running mach:

['mochitest']

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:

Exception: A cross-directory support file path noted in a test manifest does not appear in any other manifest.
"browser/modules/test/browser/head.js" must appear in another test manifest to specify an install for "!/browser/modules/test/browser/head.js".

File "/home/gbrown/src/testing/mochitest/mach_commands.py", line 379, in run_mochitest_general
driver.install_tests(tests)
File "/home/gbrown/src/python/mozbuild/mozbuild/controller/building.py", line 1354, in install_tests
'_tests', test_objs)
File "/home/gbrown/src/python/mozbuild/mozbuild/testing.py", line 273, in install_test_files
manifest = _make_install_manifest(topsrcdir, topobjdir, test_objs)
File "/home/gbrown/src/python/mozbuild/mozbuild/testing.py", line 261, in _make_install_manifest
_resolve_installs(install_info.deferred_installs, topobjdir, manifest)
File "/home/gbrown/src/python/mozbuild/mozbuild/testing.py", line 203, in _resolve_installs
'for "!/%s".' % (path, path))

toolkit/components/antitracking/test/browser/browser.ini references browser/modules/test/browser/head.js.

Assignee: nobody → gbrown

Do not include the problematic manifest on Android. We never run Android
mochitest-browser-chrome anyway. Bug 1435429 used a similar approach.

Pushed by gbrown@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0710791f6f52
Avoid cross-directory support file error in android mochitest; r=bc
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla69
See Also: → 1606370
Whiteboard: dev-prod-2020
Whiteboard: dev-prod-2020
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: