diff options
author | Tibor Frank <tifrank@cisco.com> | 2018-02-06 14:16:31 +0100 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2018-02-07 13:36:39 +0000 |
commit | b1589042d816ce58648153c20906520916feff49 (patch) | |
tree | 30f43d4fd5549942f28303d59ccdf22643dd07f4 /resources/tools/presentation/pal.py | |
parent | c3550796453ef56884755e302aa5e428f7ec8dad (diff) |
CSIT-907: process wrk results in PAL
- CSIT-908: LLD
- CSIT-909: Data model
- CSIT-910: Algorithm
- CSIT-911: Static content
Change-Id: I26b33c2a7e0f320f62c78871576ca400a83b307c
Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation/pal.py')
-rw-r--r-- | resources/tools/presentation/pal.py | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/resources/tools/presentation/pal.py b/resources/tools/presentation/pal.py index 14a1937054..6d613e339c 100644 --- a/resources/tools/presentation/pal.py +++ b/resources/tools/presentation/pal.py @@ -83,39 +83,39 @@ def main(): logging.critical("Finished with error.") sys.exit(1) - #try: - env = Environment(spec.environment, args.force) - env.set_environment() - - if spec.is_debug: - if spec.debug["input-format"] == "zip": - unzip_files(spec) - else: - download_data_files(spec) - - prepare_static_content(spec) - - data = InputData(spec) - data.read_data() - - generate_tables(spec, data) - generate_plots(spec, data) - generate_files(spec, data) - generate_report(args.release, spec) - - logging.info("Successfully finished.") - - # except (KeyError, ValueError, PresentationError) as err: - # logging.info("Finished with an error.") - # logging.critical(str(err)) - # except Exception as err: - # logging.info("Finished with an error.") - # logging.critical(str(err)) - # - # finally: - # if spec is not None and not spec.is_debug: - # clean_environment(spec.environment) - # sys.exit(1) + try: + env = Environment(spec.environment, args.force) + env.set_environment() + + if spec.is_debug: + if spec.debug["input-format"] == "zip": + unzip_files(spec) + else: + download_data_files(spec) + + prepare_static_content(spec) + + data = InputData(spec) + data.read_data() + + generate_tables(spec, data) + generate_plots(spec, data) + generate_files(spec, data) + generate_report(args.release, spec) + + logging.info("Successfully finished.") + + except (KeyError, ValueError, PresentationError) as err: + logging.info("Finished with an error.") + logging.critical(str(err)) + except Exception as err: + logging.info("Finished with an unexpected error.") + logging.critical(str(err)) + + finally: + if spec is not None and not spec.is_debug: + clean_environment(spec.environment) + sys.exit(1) if __name__ == '__main__': |