diff options
author | 2018-08-28 04:16:29 -0400 | |
---|---|---|
committer | 2018-08-30 08:39:41 +0000 | |
commit | 3c1848c52e7483219e99f5fe2bf5953c38f9a474 (patch) | |
tree | 64cd5fad86a049050c4fefce666e181636fcc43b /etc/conf/bottlenecks_config.yml | |
parent | 23ecd96cdec73d4d32daf4fe6e72944956e923ed (diff) |
Change Bottlenecks volume mapping
If mapping to host's /tmp, it won't clean all .log and .out files before
run a new test. It causes the results file including all previous results.
See https://build.opnfv.org/ci/view/dovetail/job/dovetail-apex-baremetal-default-mandatory-master/26/artifact/results/stress_logs/bottlenecks.stress.ping.out/*view*/
It will affect the results check.
Mapping to DOVETAIL_HOME/results/bottlenecks, which will always be cleaned
before running another test.
Change-Id: I22bfc871d6f041ae38308bf8e8f685993a376973
Signed-off-by: xudan <xudan16@huawei.com>
(cherry picked from commit e79f851c5b804db5884be05a50bc3ae0abe222b4)
Diffstat (limited to 'etc/conf/bottlenecks_config.yml')
-rw-r--r-- | etc/conf/bottlenecks_config.yml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/conf/bottlenecks_config.yml b/etc/conf/bottlenecks_config.yml index 85551317..a7d1f4cd 100644 --- a/etc/conf/bottlenecks_config.yml +++ b/etc/conf/bottlenecks_config.yml @@ -3,6 +3,7 @@ {% set validate_testcase = validate_testcase or '' %} {% set testcase = testcase or '' %} {% set deploy_scenario = deploy_scenario or 'unknown' %} +{% set dovetail_home = dovetail_home or '' %} bottlenecks: image_name: opnfv/bottlenecks @@ -11,7 +12,7 @@ bottlenecks: envs: '-e DEPLOY_SCENARIO={{deploy_scenario}} -e Yardstick_TAG=stable -e OUTPUT_FILE={{testcase}}.out' volumes: - '-v /var/run/docker.sock:/var/run/docker.sock' - - '-v /tmp:/tmp' + - '-v {{dovetail_home}}/results/bottlenecks:/tmp' config: dir: '/home/opnfv/userconfig' pre_condition: @@ -22,6 +23,7 @@ bottlenecks: - 'mkdir -p /home/opnfv/bottlenecks/results' - 'cp /tmp/bottlenecks.log /home/opnfv/bottlenecks/results' - 'cp /tmp/bottlenecks.stress.ping.out /home/opnfv/bottlenecks/results' + - 'rm /tmp/yardstick.img' result: dir: '/home/opnfv/bottlenecks/results' openrc: '/tmp/admin_rc.sh' |