From 7433b1c89e2ffba3b097832f353146f12987e6dd Mon Sep 17 00:00:00 2001 From: "wu.zhihui" Date: Thu, 2 Mar 2017 18:40:11 +0800 Subject: Refactor dhrystone playbook - Break previous one playbook into three playbooks: setup.yaml: setup test environment. run.yaml: execute test steps clean.yaml: cleanup test environment to restore environment The advantage is cleaning part will never be blocked by another. - Just do testing on remote hosts, parse logfile on localhost. - Use ansible module instead of shell command. - Move up all files under /ansible and remove ansible directory. Under /ansible, ansible package cann't be imported. Change-Id: I43c65be23869b7d42ca769994d4decb9a012d196 Signed-off-by: wu.zhihui --- qtip/driver/playbook/top.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 qtip/driver/playbook/top.yaml (limited to 'qtip/driver/playbook/top.yaml') diff --git a/qtip/driver/playbook/top.yaml b/qtip/driver/playbook/top.yaml new file mode 100644 index 00000000..8de7e3d6 --- /dev/null +++ b/qtip/driver/playbook/top.yaml @@ -0,0 +1,10 @@ +############################################################################## +# Copyright (c) 2017 ZTE Corporation and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## +- name: Collect cpu usage + shell: top -bn1 > $HOME/qtip_result/top.log -- cgit 1.2.3-korg