mirror of
https://github.com/versity/scoutfs.git
synced 2026-01-08 21:03:12 +00:00
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]
21 lines
404 B
Bash
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
|