summaryrefslogtreecommitdiffstats
path: root/clustermd_tests/func.sh
diff options
context:
space:
mode:
authorZhilong Liu <zlliu@suse.com>2018-02-02 07:10:47 +0100
committerJes Sorensen <jsorensen@fb.com>2018-03-08 20:29:50 +0100
commit064bd3f5ca15c58945a2c0e6fcb33eda06bc0f7a (patch)
treecab66136e7c2ed8a6d3ce7bd2613a8418fe66ad4 /clustermd_tests/func.sh
parentmdadm/test: add disk metadata infos in save_log (diff)
downloadmdadm-064bd3f5ca15c58945a2c0e6fcb33eda06bc0f7a.tar.xz
mdadm-064bd3f5ca15c58945a2c0e6fcb33eda06bc0f7a.zip
mdadm/test: add do_clean to ensure each case only catch its own testlog
Signed-off-by: Zhilong Liu <zlliu@suse.com> Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Diffstat (limited to 'clustermd_tests/func.sh')
-rw-r--r--clustermd_tests/func.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/clustermd_tests/func.sh b/clustermd_tests/func.sh
index 8ac59219..5c0b1684 100644
--- a/clustermd_tests/func.sh
+++ b/clustermd_tests/func.sh
@@ -196,9 +196,8 @@ do_setup()
ulimit -c unlimited
}
-cleanup()
+do_clean()
{
- check_ssh
for ip in $NODE1 $NODE2
do
ssh $ip "mdadm -Ssq; dmesg -c > /dev/null"
@@ -206,6 +205,12 @@ cleanup()
mdadm --zero ${devlist[@]} &> /dev/null
}
+cleanup()
+{
+ check_ssh
+ do_clean
+}
+
# check: $1/cluster_node $2/feature $3/optional
check()
{