diff options
author | 2018-03-14 17:07:47 +0800 | |
---|---|---|
committer | 2018-03-15 08:06:47 +0000 | |
commit | 9efc27665e10b4a36153291e171efdd8bf10c11b (patch) | |
tree | 456ef8ef80a5b47112b2d06a42f9f384ff975ead | |
parent | c7e43d91f4a6babaff1f373b0a7ed102a876e7d3 (diff) |
bugfix: stress ping for offline support
JIRA: BOTTLENECK-226
See above
Change-Id: Iba5d21348355a80d6c17deb1a12114d1d07e5c15
Signed-off-by: Yang Yu <Gabriel.yuyang@huawei.com>
(cherry picked from commit 9400c02df69737daf14644d1113ac9c1173fa70a)
-rw-r--r-- | testsuites/posca/testcase_script/posca_factor_ping.py | 2 | ||||
-rw-r--r-- | utils/env_prepare/stack_prepare.py | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/testsuites/posca/testcase_script/posca_factor_ping.py b/testsuites/posca/testcase_script/posca_factor_ping.py index ea79d3ad..4ee43964 100644 --- a/testsuites/posca/testcase_script/posca_factor_ping.py +++ b/testsuites/posca/testcase_script/posca_factor_ping.py @@ -43,7 +43,7 @@ test_dict = { } testfile = os.path.basename(__file__) testcase, file_format = os.path.splitext(testfile) -cidr = "/home/opnfv/repos/yardstick/samples/storage_bottlenecks.yaml" +cidr = "/home/opnfv/repos/yardstick/samples/ping_bottlenecks.yaml" runner_DEBUG = True q = Queue.Queue() diff --git a/utils/env_prepare/stack_prepare.py b/utils/env_prepare/stack_prepare.py index c1ac395a..6b9bc510 100644 --- a/utils/env_prepare/stack_prepare.py +++ b/utils/env_prepare/stack_prepare.py @@ -75,7 +75,13 @@ def _source_file(rc_file): shell=True) output = p.communicate()[0] output_lines = output.splitlines() - env = dict((line.split('=', 1) for line in output_lines)) + env = list() + for line in output_lines: + if '=' in line: + env.append(tuple(line.split('=', 1))) + + env = dict(env) +# env = dict((line.split('=', 1) for line in output_lines)) os.environ.update(env) return env |