Whamcloud - gitweb
LU-13982 tests: fix infinite loop in sanity test_184c 07/40007/4
authorMr NeilBrown <neilb@suse.de>
Wed, 23 Sep 2020 05:23:46 +0000 (15:23 +1000)
committerOleg Drokin <green@whamcloud.com>
Mon, 12 Oct 2020 05:46:50 +0000 (05:46 +0000)
commitc03c500529b0b6e0310c95132d5e8b40912ede8e
tree865895915a375e5d7b861e76cac3e80456dcc895
parentc7fbae54c65a826e84b18723720507d6ea855b7f
LU-13982 tests: fix infinite loop in sanity test_184c

If the dd in test_184c fails to create the file, for example due to
ENOSPC, the subsequent "while" loops indefinitely.

So add a loop-count to ensure it stops eventually.

Also change the test from "-f" to "-s" so we wait for the file to be
non-empty.

Test-Parameters: trivial
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I5051adf101f08856b97fa994f687b976fda84df4
Reviewed-on: https://review.whamcloud.com/40007
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Nunez <jnunez@whamcloud.com>
lustre/tests/sanity.sh