JIRA: YARDSTICK-776
In danube.0.3.0, if we do not have yardstick.conf and then run task directly,
we will get a RuntimeError, so yardstick.conf is must. This is not reasonable.
In this patch, I fix it. So we can run it without yardstick.conf
Change-Id: Ic069f67221da109db17cbd1bd51d299f6e267e6d
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
check_environment()
- self.config['yardstick'] = utils.parse_ini_file(config_file)
+ try:
+ self.config['yardstick'] = utils.parse_ini_file(config_file)
+ except Exception:
+ # all error will be ignore, the default value is {}
+ self.config['yardstick'] = {}
total_start_time = time.time()
parser = TaskParser(args.inputfile[0])