diff --git a/tests/btrfs/132 b/tests/btrfs/132 index 05161772..db0dcb04 100755 --- a/tests/btrfs/132 +++ b/tests/btrfs/132 @@ -94,9 +94,10 @@ sleep $sleep_time kill $pids wait -# Sync the fs to avoid EBUSY while umount, which is quite common for btrfs -# compression -sync +# Wait all writers really exits +while ps aux | grep "$SCRATCH_MNT" | grep -qv grep; do + sleep 1 +done echo "Silence is golden" status=0