Closed
Bug 1376965
Opened 9 years ago
Closed 9 years ago
Error running xpcshell test with mach test
Categories
(Testing :: XPCShell Harness, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1375173
People
(Reporter: valentin, Unassigned)
Details
user@machine:~/mozilla-central$ ./mach test netwerk/test/unit/test_race_cache_with_network.js
cat: backend.TestManifestBackend.in: No such file or directory
Build configuration changed. Regenerating backend.
0:00.38 LOG: MainThread WARNING MOZ_NODE_PATH environment variable not set. Tests requiring http/2 will fail.
Error running mach:
['test', 'netwerk/test/unit/test_race_cache_with_network.js']
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:
AttributeError: 'NoneType' object has no attribute 'startswith'
File "/home/user/mozilla-central/testing/mach_commands.py", line 343, in test
test_objects=tests, **kwargs)
File "/home/user/mozilla-central/python/mach/mach/registrar.py", line 123, in dispatch
return self._run_command_handler(handler, context=context, **kwargs)
File "/home/user/mozilla-central/python/mach/mach/registrar.py", line 90, in _run_command_handler
result = fn(**kwargs)
File "/home/user/mozilla-central/testing/xpcshell/mach_commands.py", line 269, in run_xpcshell_test
return xpcshell.run_test(**params)
File "/home/user/mozilla-central/testing/xpcshell/mach_commands.py", line 61, in run_test
return self.run_suite(**kwargs)
File "/home/user/mozilla-central/testing/xpcshell/mach_commands.py", line 47, in run_suite
return self._run_xpcshell_harness(**kwargs)
File "/home/user/mozilla-central/testing/xpcshell/mach_commands.py", line 137, in _run_xpcshell_harness
result = xpcshell.runTests(**filtered_args)
File "/home/user/mozilla-central/testing/xpcshell/runxpcshelltests.py", line 1274, in runTests
self.buildTestList(test_tags, testPaths)
File "/home/user/mozilla-central/testing/xpcshell/runxpcshelltests.py", line 874, in buildTestList
self.alltests = map(normalize, mp.active_tests(filters=filters, **mozinfo.info))
File "/home/user/mozilla-central/testing/xpcshell/runxpcshelltests.py", line 837, in normalizeTest
test_object['manifest'] = os.path.relpath(test_object['manifest'], root)
File "/usr/lib/python2.7/posixpath.py", line 430, in relpath
start_list = [x for x in abspath(start).split(sep) if x]
File "/usr/lib/python2.7/posixpath.py", line 360, in abspath
if not isabs(path):
File "/usr/lib/python2.7/posixpath.py", line 54, in isabs
return s.startswith('/')
user@machine:~/mozilla-central$ ./mach test netwerk/test/unit/test_race_cache_with_network.js
0:00.19 LOG: MainThread WARNING MOZ_NODE_PATH environment variable not set. Tests requiring http/2 will fail.
Error running mach:
['test', 'netwerk/test/unit/test_race_cache_with_network.js']
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:
AttributeError: 'NoneType' object has no attribute 'startswith'
File "/home/user/mozilla-central/testing/mach_commands.py", line 343, in test
test_objects=tests, **kwargs)
File "/home/user/mozilla-central/python/mach/mach/registrar.py", line 123, in dispatch
return self._run_command_handler(handler, context=context, **kwargs)
File "/home/user/mozilla-central/python/mach/mach/registrar.py", line 90, in _run_command_handler
result = fn(**kwargs)
File "/home/user/mozilla-central/testing/xpcshell/mach_commands.py", line 269, in run_xpcshell_test
return xpcshell.run_test(**params)
File "/home/user/mozilla-central/testing/xpcshell/mach_commands.py", line 61, in run_test
return self.run_suite(**kwargs)
File "/home/user/mozilla-central/testing/xpcshell/mach_commands.py", line 47, in run_suite
return self._run_xpcshell_harness(**kwargs)
File "/home/user/mozilla-central/testing/xpcshell/mach_commands.py", line 137, in _run_xpcshell_harness
result = xpcshell.runTests(**filtered_args)
File "/home/user/mozilla-central/testing/xpcshell/runxpcshelltests.py", line 1274, in runTests
self.buildTestList(test_tags, testPaths)
File "/home/user/mozilla-central/testing/xpcshell/runxpcshelltests.py", line 874, in buildTestList
self.alltests = map(normalize, mp.active_tests(filters=filters, **mozinfo.info))
File "/home/user/mozilla-central/testing/xpcshell/runxpcshelltests.py", line 837, in normalizeTest
test_object['manifest'] = os.path.relpath(test_object['manifest'], root)
File "/usr/lib/python2.7/posixpath.py", line 430, in relpath
start_list = [x for x in abspath(start).split(sep) if x]
File "/usr/lib/python2.7/posixpath.py", line 360, in abspath
if not isabs(path):
File "/usr/lib/python2.7/posixpath.py", line 54, in isabs
return s.startswith('/')
user@machine:~/mozilla-central$
Updated•9 years ago
|
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•