mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 921987 - Don't install inactive tests; r=ted
This commit is contained in:
parent
e2c6feedd7
commit
9f6493f1a1
@ -256,7 +256,7 @@ class TreeMetadataEmitter(LoggingMixin):
|
||||
filtered = m.tests
|
||||
|
||||
if filter_inactive:
|
||||
filtered = m.active_tests(**self.mozinfo)
|
||||
filtered = m.active_tests(disabled=False, **self.mozinfo)
|
||||
|
||||
out_dir = mozpath.join(install_prefix, manifest_reldir)
|
||||
|
||||
|
@ -0,0 +1,3 @@
|
||||
[test_active.html]
|
||||
[test_inactive.html]
|
||||
skip-if = true
|
@ -0,0 +1,4 @@
|
||||
# Any copyright is dedicated to the Public Domain.
|
||||
# http://creativecommons.org/publicdomain/zero/1.0/
|
||||
|
||||
MOCHITEST_MANIFESTS += ['mochitest.ini']
|
@ -320,6 +320,23 @@ class TestEmitterBasic(unittest.TestCase):
|
||||
'entry in generated-files not present elsewhere'):
|
||||
self.read_topsrcdir(reader),
|
||||
|
||||
# This test is only needed until all harnesses support filtering from
|
||||
# manifests.
|
||||
def test_test_manifest_inactive_ignored(self):
|
||||
"""Inactive tests should not be installed."""
|
||||
reader = self.reader('test-manifest-inactive-ignored')
|
||||
|
||||
objs = [o for o in self.read_topsrcdir(reader)
|
||||
if isinstance(o, TestManifest)]
|
||||
|
||||
self.assertEqual(len(objs), 1)
|
||||
|
||||
o = objs[0]
|
||||
|
||||
self.assertEqual(o.flavor, 'mochitest')
|
||||
basenames = set(os.path.basename(k) for k in o.installs.keys())
|
||||
self.assertEqual(basenames, {'mochitest.ini', 'test_active.html'})
|
||||
|
||||
def test_ipdl_sources(self):
|
||||
reader = self.reader('ipdl_sources')
|
||||
objs = self.read_topsrcdir(reader)
|
||||
|
Loading…
Reference in New Issue
Block a user