OSDN Git Service

tests: avoid race condition in t3000-resize
authorJim Meyering <meyering@redhat.com>
Thu, 18 Nov 2010 09:22:56 +0000 (10:22 +0100)
committerJim Meyering <meyering@redhat.com>
Sat, 20 Nov 2010 10:44:06 +0000 (11:44 +0100)
commit3d2490e21567e63e601675f14557c50eb2965170
tree230073f5e866f096bce248c920fdf37bf23323df
parent10e64e978cc172931eb406f90eda91b899320f1f
tests: avoid race condition in t3000-resize

Without the 1-second sleep, this root-only test would
fail about 50% of the time for me.
* tests/t3000-resize-fs.sh (device_sectors_required): Sleep
one more second after ${dev}1 appears, so that subsequent
commands are more predictable.
Split a long line.
tests/t3000-resize-fs.sh