Whamcloud - gitweb
tests: skip u_direct_io if losetup fails
authorDarrick J. Wong <djwong@kernel.org>
Thu, 5 Aug 2021 15:43:28 +0000 (08:43 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 6 Aug 2021 15:22:05 +0000 (11:22 -0400)
commit40ef5e29113b10447f226a3e4a028d7d19c2bffc
tree2537594a5d5db963dbed144d8847066d47fa60a1
parent838f94f263432dac6867ab4122167cd9f8562cea
tests: skip u_direct_io if losetup fails

This new test requires a loop device to run testing.  While it checks
for some "obvious" parameters that might cause the test to fail such as
not being root and no losetup executable, it doesn't actually check that
the losetup -a call succeeds.  This causes a test regression in my
package building container (where there is only a minimal /dev with no
loop devices available) so I can't build debian packages.

Fix the test to skip out if we can't create a loop device.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
tests/u_direct_io/script