aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/utils/report/get_indices.py
blob: 42db65847cca753e07887d6b129d242f6c0cdebb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
##############################################################################
# Copyright (c) 2017 ZTE Corporation and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
import json


def get_index(suite):
    with open('../../results/' + suite + '.json') as result_file:
        result_djson = json.load(result_file)
        index = result_djson['index']
    return index