diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2012-12-11 19:58:47 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2012-12-11 16:05:27 -0800 |
commit | 1d87098f2df19af5a42ade6b305cbb01b85af8ea (patch) | |
tree | fe1aec338579f14ff508038acf906824a84cbd37 /tests/bugs/bug-884452.t | |
parent | 0c9f4d12a3b724afd61f60fed5e131335579ae5a (diff) |
Synchronize ls-loop with main-script
Change-Id: If9a15e4c272baa28eee4f2fdfdf52b2e032b3a96
BUG: 884452
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Reviewed-on: http://review.gluster.org/4292
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'tests/bugs/bug-884452.t')
-rw-r--r-- | tests/bugs/bug-884452.t | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/tests/bugs/bug-884452.t b/tests/bugs/bug-884452.t index 27d7e6afcce..d07651e46f6 100644 --- a/tests/bugs/bug-884452.t +++ b/tests/bugs/bug-884452.t @@ -13,14 +13,16 @@ TEST $CLI volume start $V0 TEST glusterfs -s $H0 --volfile-id $V0 $M0 TEST touch $M0/{1..10000} +RUN_LS_LOOP_FILE="$M0/run-ls-loop" function ls-loop { - while true; do + while [ -f $RUN_LS_LOOP_FILE ]; do ls -lR $M0 1>/dev/null 2>&1 done; } + +touch $RUN_LS_LOOP_FILE ls-loop & -LS_LOOP=$! function vol-status-loop { @@ -36,12 +38,9 @@ function vol-status-loop TEST vol-status-loop -kill -KILL $LS_LOOP >/dev/null 2>&1 -sleep 2; +rm -f $RUN_LS_LOOP_FILE +wait TEST umount $M0 cleanup; - - - |