Bug 1115338 - ./mach mochitest-browser path/to/individual/test should always run test (despite skip-if/run-if conditions in manifest). r=jmaher

This commit is contained in:
Kaustabh Datta Choudhury 2015-01-06 01:16:13 +05:30
Родитель 3434359fec
Коммит 1b7e164233
1 изменённых файлов: 10 добавлений и 4 удалений

Просмотреть файл

@ -1624,7 +1624,6 @@ class Mochitest(MochitestUtilsMixin):
"""
self.setTestRoot(options)
manifest = self.getTestManifest(options)
if manifest:
# Python 2.6 doesn't allow unicode keys to be used for keyword
# arguments. This gross hack works around the problem until we
@ -1645,13 +1644,20 @@ class Mochitest(MochitestUtilsMixin):
# In the case where we have a single file, we don't want to filter based on options such as subsuite.
tests = manifest.active_tests(disabled=disabled, options=None, **info)
for test in tests:
if 'disabled' in test:
del test['disabled']
if 'disabled' in test:
del test['disabled']
else:
tests = manifest.active_tests(disabled=disabled, options=options, **info)
tests = manifest.active_tests(disabled=disabled, options=options, **info)
if len(tests) == 0:
tests = manifest.active_tests(disabled=True, options=options, **info)
paths = []
for test in tests:
if len(tests) == 1 and 'disabled' in test:
del test['disabled']
pathAbs = os.path.abspath(test['path'])
assert pathAbs.startswith(self.testRootAbs)
tp = pathAbs[len(self.testRootAbs):].replace('\\', '/').strip('/')