constants: cache YAML config values 43/36343/9
authorRoss Brattain <ross.b.brattain@intel.com>
Thu, 22 Jun 2017 02:25:22 +0000 (19:25 -0700)
committerRoss Brattain <ross.b.brattain@intel.com>
Wed, 9 Aug 2017 04:24:27 +0000 (21:24 -0700)
commit97004997c00dac2e0dcfeef303af4701e78bb909
treead6b962b8ec15db6296ea8c636e5f23f2b1342a1
parent5ce3b6f8c8b3217091e51a6041455738603d90b8
constants: cache YAML config values

don't reparse the yardstick.yaml file each
time we lookup an option.

Since it is global data, just cache it in a global
var

Use pkg_resources.resource_filename
to lookup the path of yardstick tests, intsead of using __file__

pkg_resources is slightly more proper than __file__
at least for packages

Change-Id: I05d9748390a37bd45c53013fc084d23069ab7c51
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
tests/unit/common/test_utils.py
yardstick/common/constants.py
yardstick/common/utils.py