Files
scoutfs/tests/tests/setup-error-teardown.sh
Andy Grover 09256fdf15 scoutfs-tests: Changes for use of separate block devices for meta and data
Add -z option to run-tests.sh to specify metadata device.

Do a bunch of things twice.

Fix up setup-error-teardown test.

Signed-off-by: Andy Grover <agrover@versity.com>
[zab@versity.com: minor arg message fixes, golden output]
2020-11-19 11:42:04 -08:00

21 lines
404 B
Bash

#
# test setup error teardown
#
# Make sure that we're properly cleaning up partially built up state by
# hitting errors while setting up subsystems during mount.
#
t_require_commands sleep killall
echo "== interrupt waiting mount"
t_umount_all
mount -t scoutfs -o metadev_path=$T_MB0 $T_DB0 $T_M0 &
pid="$!"
sleep .1
kill $pid
# silence terminated message
wait "$pid" 2> /dev/null
t_mount_all
t_pass