generic/648: dmerror must be unmounted
authorZorro Lang <zlang@redhat.com>
Sun, 24 Oct 2021 12:05:12 +0000 (20:05 +0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 14 Nov 2021 10:46:01 +0000 (18:46 +0800)
commit1b5ab4ec6ad7928ecccb5346b0d6852ed4c6d8f3
tree2fcae547a7845e125244dfbe49bed8fd305633a6
parent1adc9f01994c3cb1b1870eb5a55f31046b39e934
generic/648: dmerror must be unmounted

Sometimes g/648 fail to unmount dmerror with this error:

   umount: /mnt/xfstests/scratch: target is busy.

Even worse, it will cause all later test cases fail as:

  mount: bad usage
  Try 'mount --help' for more information.
  check: failed to mount $SCRATCH_DEV using specified options
  Interrupted!

So we shouldn't _fail directly if dmerror_unmount fails, use a while
loop to try to unmount it enough times.

Signed-off-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/648