summaryrefslogtreecommitdiffstats
path: root/benchmarks/perftest/ramspeed.yaml
diff options
context:
space:
mode:
authorwu.zhihui <wu.zhihui1@zte.com.cn>2016-10-25 14:27:09 +0800
committerwu.zhihui <wu.zhihui1@zte.com.cn>2016-10-25 17:15:27 +0800
commit6ba79be2ab9a0843684555e8c1d58ff8292481af (patch)
tree84691c0c820d276c377db6ed08b324908f1d1feb /benchmarks/perftest/ramspeed.yaml
parented71617ce1c3df24c90346d900dec9f64b25743a (diff)
bugfix on perftest
1. Correct path of common directory 2. cleanup the directories qtip creates on host 3. typo 4. use module file instead of shell command to create/cleanup directory Change-Id: I85960998c15d2a1934e8ae5047b71fc91c936a46 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
Diffstat (limited to 'benchmarks/perftest/ramspeed.yaml')
-rw-r--r--benchmarks/perftest/ramspeed.yaml24
1 files changed, 15 insertions, 9 deletions
diff --git a/benchmarks/perftest/ramspeed.yaml b/benchmarks/perftest/ramspeed.yaml
index f62c6056..fb624c85 100644
--- a/benchmarks/perftest/ramspeed.yaml
+++ b/benchmarks/perftest/ramspeed.yaml
@@ -19,19 +19,19 @@
shell: echo $HOME
register: home_dir
- - name: cleaning
- shell: sudo rm -rf $HOME/ramspeed
+ - name: cleaning ramspeed directory
+ file: path=$HOME/ramspeed state=absent
- name: cleaning previous results
- shell: sudo rm -rf $HOME/qtip_result
+ file: path=$HOME/qtip_result state=absent
- name: making ramspeed temporary directory
- shell: sudo mkdir $HOME/ramspeed
+ file: path=$HOME/ramspeed state=directory
- name: making results temporary directory
- shell: sudo mkdir $HOME/qtip_result
+ file: path=$HOME/qtip_result state=directory
- - include: ../common/sys_proxy_pbook.yaml
+ - include: ./common/sys_proxy_pbook.yaml
- include: ./common/sys_info_pbook.yaml
vars:
@@ -67,7 +67,7 @@
copy: src={{workdingdir}}/utils/transform/ramspeed_transform.py dest={{home_dir.stdout}}/qtip_result
- name: Transforming result
- shell: cd $HOME/qtip_result && sudo python ramspd_transform.py
+ shell: cd $HOME/qtip_result && sudo python ramspeed_transform.py
- name: copy report formation script
copy: src={{workingdir}}/utils/transform/final_report.py dest={{home_dir.stdout}}/qtip_result
@@ -91,6 +91,12 @@
fetch: src={{home_dir.stdout}}/qtip_result/{{item}} dest={{workingdir}}/{{Dest_dir}}/ramspeed/ramspeed_temp
with_items: "{{copy_log_results.stdout_lines}}"
+ - name: cleaning ramspeed directory
+ file: path=$HOME/ramspeed state=absent
+
+ - name: cleaning previous results
+ file: path=$HOME/qtip_result state=absent
+
- hosts: localhost
connection: local
gather_facts: no
@@ -100,10 +106,10 @@
shell: ( find {{workingdir}}/{{Dest_dir}}/ramspeed/ramspeed_temp/ -name "*.json" | xargs cp -t {{workingdir}}/{{Dest_dir}}/ramspeed/)
- name: making_logs_folder
- shell: mkdir -p {{workingdir}}/{{Dest_dir}}/ramspeed/logs
+ file: path={{workingdir}}/{{Dest_dir}}/ramspeed/logs state=directory
- name: extracting_log
shell: ( find {{workingdir}}/{{Dest_dir}}/ramspeed/ramspeed_temp/ -name "*.log" | xargs cp -t {{workingdir}}/{{Dest_dir}}/ramspeed/logs)
- name: removing ramspeed_log
- shell: rm -rf {{workingdir}}/{{Dest_dir}}/ramspeed/ramspeed_temp
+ file: path={{workingdir}}/{{Dest_dir}}/ramspeed/ramspeed_temp state=absent