Skip to content
Snippets Groups Projects
Commit 1604acae authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "lrdp-v2: add progress indicator"

parents 6eb17c09 9cebcb69
No related branches found
No related tags found
No related merge requests found
...@@ -21,6 +21,7 @@ from __future__ import print_function ...@@ -21,6 +21,7 @@ from __future__ import print_function
import sys import sys
import os import os
import re import re
import time
from optparse import OptionParser from optparse import OptionParser
import parser_util import parser_util
...@@ -300,17 +301,29 @@ if __name__ == '__main__': ...@@ -300,17 +301,29 @@ if __name__ == '__main__':
get_wdog_timing(dump) get_wdog_timing(dump)
print_out_str('---------- end watchdog time-----') print_out_str('---------- end watchdog time-----')
for p in parser_util.get_parsers(): # we called parser.add_option with dest=p.cls.__name__ above,
# we called parser.add_option with dest=p.cls.__name__ above, # so if the user passed that option then `options' will have a
# so if the user passed that option then `options' will have a # p.cls.__name__ attribute.
# p.cls.__name__ attribute. parsers_to_run = [p for p in parser_util.get_parsers()
if getattr(options, p.cls.__name__) or (options.everything and not p.optional): if getattr(options, p.cls.__name__)
with print_out_section(p.cls.__name__): or (options.everything and not p.optional)]
try: for i,p in enumerate(parsers_to_run):
p.cls(dump).parse() if i == 0:
except: sys.stderr.write("\n")
print_out_str('!!! Exception while running {0}'.format(p.cls.__name__)) sys.stderr.write(" [%d/%d] %s ... " %
print_out_exception() (i + 1, len(parsers_to_run), p.longopt))
before = time.time()
with print_out_section(p.cls.__name__):
try:
p.cls(dump).parse()
except:
print_out_str('!!! Exception while running {0}'.format(p.cls.__name__))
print_out_exception()
sys.stderr.write("FAILED! ")
sys.stderr.write("%fs\n" % (time.time() - before))
sys.stderr.flush()
sys.stderr.write("\n")
if options.t32launcher or options.everything: if options.t32launcher or options.everything:
dump.create_t32_launcher() dump.create_t32_launcher()
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