From: Emoly Liu Date: Wed, 27 Nov 2013 09:25:01 +0000 (+0800) Subject: LU-4329 tests: initialize $PREV_RESULT in wait_update() X-Git-Tag: 2.5.53~51 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=17e28a2c8d8c03ca8640f3595f9f7c53d76c59da LU-4329 tests: initialize $PREV_RESULT in wait_update() Initialize variable PREV_RESULT in wait_update() to avoid useless output like "Changed after 0s: from '' to '1'". Signed-off-by: Emoly Liu Change-Id: I2aea8547892a36e92e8d0c54ac541397a102e76c Reviewed-on: http://review.whamcloud.com/8449 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Bobi Jam Reviewed-by: Jian Yu Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index 675e311..5bcd5ba 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -1962,6 +1962,7 @@ wait_update () { local sleep=1 local print=10 + PREV_RESULT=$(do_node $node "$TEST") while [ true ]; do RESULT=$(do_node $node "$TEST") if [[ "$RESULT" == "$FINAL" ]]; then