diff options
author | Rex Lee <limingjiang@huawei.com> | 2017-02-16 09:38:29 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-02-16 09:38:29 +0000 |
commit | 4dad0ef54f2a8e445f9b113edbf298c3cf949213 (patch) | |
tree | bbc4c3e32f5faf776da5c2c7134e932853460068 /yardstick/common | |
parent | e1f5deb4c48824eeed79d7664e9ae5fbc555cfff (diff) | |
parent | f4093d1c2bd64ff53320e9f689d0cd77590bbcee (diff) |
Merge "Scenario is reporting result for last test only"
Diffstat (limited to 'yardstick/common')
-rw-r--r-- | yardstick/common/utils.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/yardstick/common/utils.py b/yardstick/common/utils.py index 174ac0a5a..04536190b 100644 --- a/yardstick/common/utils.py +++ b/yardstick/common/utils.py @@ -148,6 +148,11 @@ def get_neutron_client(): return neutron_client +def read_json_from_file(path): + with open(path, 'r') as f: + return jsonutils.load(f) + + def write_json_to_file(path, data, mode='w'): with open(path, mode) as f: jsonutils.dump(data, f) |