Skip to content
Snippets Groups Projects
Commit 27099b29 authored by Mitchel Humpherys's avatar Mitchel Humpherys
Browse files

lrdp-v2: sort the parsers before running

Currently the registered parsers can be run in basically any order. It
would be slightly messy to run them in the order the user specified on
the command line, so just run them alphabetically for now.

This is needed to do regression testing on the LRDP (diff'ing output of
the same dumps with different LRDP code).

Change-Id: Ib63c9b5fecaf1170df0e9e121980fcd0e4f35623
parent f137325a
No related branches found
No related tags found
No related merge requests found
...@@ -92,7 +92,7 @@ def get_parsers(): ...@@ -92,7 +92,7 @@ def get_parsers():
""" """
parsers_dir = os.path.join(os.path.dirname(__file__), 'parsers') parsers_dir = os.path.join(os.path.dirname(__file__), 'parsers')
for f in glob.glob(os.path.join(parsers_dir, '*.py')): for f in sorted(glob.glob(os.path.join(parsers_dir, '*.py'))):
modname_ext = os.path.basename(f) modname_ext = os.path.basename(f)
if modname_ext == '__init__.py': if modname_ext == '__init__.py':
continue continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment