diff options
author | 2019-10-10 11:52:22 +0200 | |
---|---|---|
committer | 2019-10-11 09:57:09 +0000 | |
commit | 5d49bc99a61bbc59b2cd7c0b58e577c3f9a46365 (patch) | |
tree | 09689f4f1860d141d4d328ef6429b4f74bf67b6c /resources/tools/presentation/generator_CPTA.py | |
parent | ddf4a20379ac8c9bf928d10286bc6bf61bff9dcc (diff) |
Trending: Generate email body for regressions and progressions
Change-Id: Iee652fc48b574b7866d5e7f0b7b927f96de3d25f
Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation/generator_CPTA.py')
-rw-r--r-- | resources/tools/presentation/generator_CPTA.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/resources/tools/presentation/generator_CPTA.py b/resources/tools/presentation/generator_CPTA.py index 580b8f033b..f57757f451 100644 --- a/resources/tools/presentation/generator_CPTA.py +++ b/resources/tools/presentation/generator_CPTA.py @@ -602,6 +602,12 @@ def _generate_all_charts(spec, input_data): if classification == "regression" or \ classification == "outlier": result = "FAIL" + file_name = "{0}-progressions-{1}.txt".\ + format(spec.cpta["output-file"], job_name) + with open(file_name, 'w') as txt_file: + for test_name, classification in job_data.iteritems(): + if classification == "progression": + txt_file.write(test_name + '\n') else: result = "FAIL" |