diff options
author | chenjiankun <chenjiankun1@huawei.com> | 2017-10-12 08:21:29 +0000 |
---|---|---|
committer | chenjiankun <chenjiankun1@huawei.com> | 2017-10-12 08:21:29 +0000 |
commit | 68331d3be6ff0605e079db985e1d7c34325c4032 (patch) | |
tree | b015a903a6d231391577c4eb62de3b12b0bc41d9 /reporting | |
parent | 57de16db5b3c02db535871deac604058e0cddbc2 (diff) |
Change criteria 'SUCCESS' to 'PASS' in yardstick reporting
To keep consistent with other testing project,
yardstick should change criteria value from 'SUCCESS' to 'PASS'
Change-Id: I8d8779927a74749e7c43df4e55e1888c49cbbbaf
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Diffstat (limited to 'reporting')
-rw-r--r-- | reporting/reporting/utils/reporting_utils.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/reporting/reporting/utils/reporting_utils.py b/reporting/reporting/utils/reporting_utils.py index 6c0d5a2..65267ca 100644 --- a/reporting/reporting/utils/reporting_utils.py +++ b/reporting/reporting/utils/reporting_utils.py @@ -186,7 +186,6 @@ def getScenarioStats(scenario_results): def getScenarioStatus(installer, version): """ Get the status of a scenariofor Yardstick - they used criteria SUCCESS (default: PASS) """ period = get_config('general.period') url_base = get_config('testapi.url') @@ -228,7 +227,7 @@ def getScenarioStatus(installer, version): # scenario_results[k] = v[:LASTEST_TESTS] s_list = [] for element in scen_v: - if element['criteria'] == 'SUCCESS': + if element['criteria'] == 'PASS': s_list.append(1) else: s_list.append(0) |