From ff2fa6cb4fc013f158fd0195a34b838d79c72894 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Thu, 29 Sep 2011 15:21:01 +0530 Subject: sanity/nightly_sanity/nightly_updated.sh: make changes for the copying the new statedump files Previously statedump files were located in /tmp/with the name glusterfs. Now (glusterfs-3.3.0qa12 onwards) its not like that. Brick statedumps are saved in the pattern "brick-path..dump" and client statedumps are saved in the pattern glusterdump..dump. Changes are done with this commit to make nightly sanity script aware of that. --- sanity/nightly_sanity/nightly_updated.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sanity/nightly_sanity/nightly_updated.sh b/sanity/nightly_sanity/nightly_updated.sh index baed7d3..a8f4da1 100755 --- a/sanity/nightly_sanity/nightly_updated.sh +++ b/sanity/nightly_sanity/nightly_updated.sh @@ -702,7 +702,7 @@ function take_statedump () BRICK_PID=$(cat /etc/glusterd/vols/vol/run/$i); kill -USR1 $BRICK_PID; sleep 1; - mv /tmp/glusterdump.$BRICK_PID $dir; + mv /tmp/*.$BRICK_PID.dump $dir; done for j in $(seq 1 $num_clients) @@ -710,10 +710,10 @@ function take_statedump () CLIENT_PID=$(cat /tmp/client_pid$j); kill -USR1 $CLIENT_PID; sleep 1; - mv /tmp/glusterdump.$CLIENT_PID $dir; + mv /tmp/*.$CLIENT_PID.dump $dir; done } - + function main() { echo "In main"; @@ -724,7 +724,7 @@ function main() start_glusterd; start_glusterfs; take_statedump $LOGDIR/old_dump/; - run_tests; + run_tests; take_statedump $LOGDIR/new_dump/; trap - INT TERM EXIT post_run; -- cgit