__init__.py |
|
290 |
cli.py |
Mozilla universal manifest parser
|
7724 |
expression.py |
[^\'] |
9164 |
filters.py |
A filter is a callable that accepts an iterable of test objects and a
dictionary of values, and returns a new iterable of test objects. It is
possible to define custom filters if the built-in ones are not enough.
|
19159 |
ini.py |
read an .ini file and return a list of [(section, values)]
- fp : file pointer or path to read
- defaults : default set of variables
- default : name of the section for the default section
- comments : characters that if they start a line denote a comment
- separators : strings that denote key, value separation in order
- strict : whether to be strict about parsing
- handle_defaults : whether to incorporate defaults into each section
- add_line_no: whether to include the line number that points to the test in the generated ini file.
|
7406 |
logger.py |
ManifestParser needs to ensure a singleton for mozlog as documented here:
https://firefox-source-docs.mozilla.org/mozbase/mozlog.html#mozlog-structured-logging-for-test-output
Logging is threadsafe, with access to handlers protected by a
threading.Lock. However it is not process-safe. This means that
applications using multiple processes, e.g. via the multiprocessing
module, should arrange for all logging to happen in a single process.
The test:
`testing/mochitest/tests/python/test_mochitest_integration.py::test_output_testfile_in_dupe_manifests`
creates two ManifestParser instances and runs them at the same
tripping over the condition (above) resulting in this exception:
[task 2023-08-02T17:16:41.636Z] File "/builds/worker/checkouts/gecko/testing/mozbase/mozlog/mozlog/handlers/base.py", line 113, in __call__
[task 2023-08-02T17:16:41.636Z] self.stream.write(formatted)
[task 2023-08-02T17:16:41.636Z] ValueError: I/O operation on closed file
|
2728 |
manifestparser.py |
normalize a relative path |
34422 |
toml.py |
Returns a list of paths (tests) in a manifest in alphabetical order.
Ensures DEFAULT is first and filenames with a bug number are
in the proper order.
|
11623 |
util.py |
Normalize path separators, by using forward slashes instead of whatever
:py:const:`os.sep` is.
|
1557 |