Commit Graph

5 Commits

Author SHA1 Message Date
Andrew Halberstadt
a74852785a Bug 1123763 - [manifestparser] Implement filter system for manifest.active_tests(), r=ted
A filter is a callable that accepts an iterable of tests and a dictionary of values (e.g mozinfo.info) and returns an iterable of tests. Note filtering can mean modifying tests in addition to removing them. For example, this implements a "timeout-if" tag in the manifest:

    from manifestparser import expression
    import mozinfo

    def timeout_if(tests, values):
        for test in tests:
            if 'timeout-if' in test:
                timeout, condition = test['timeout-if'].split(',', 1)
                if expression.parse(condition, **values):
                    test['timeout'] = timeout
        yield test

    tests = mp.active_tests(filters=[timeout_if], **mozinfo.info)
2015-02-10 09:38:29 -05:00
Pankaj Malhotra(:bitgeeky)
22588a5bfe Bug 1087682 - Add a manifestparser test for the case where there is no manifest. r=jgriffin 2014-11-04 04:16:00 +01:00
Jonathan Griffin
c3591144e2 Bug 1061982 - manifestparser changes to support conditional subsuites, r=jmaher 2014-09-05 10:44:22 -07:00
Andrew Halberstadt
6f1f091d13 Bug 857966 - manifestparser should error on non-existent test when strict enabled, r=davehunt 2014-09-03 14:17:40 -04:00
William Lachance
2e4f245a3b Bug 984528 - Rename manifestdestiny -> manifestparser. r=ahal 2014-06-10 13:20:23 -04:00