test-50-dissect: do not fail test on cleanup

These paths are read-only mount points. Hence, we cannot remove the
contents.
This commit is contained in:
Yu Watanabe
2022-09-17 21:36:18 +09:00
parent 759b4b4a2a
commit d3fcb73678
+7 -3
View File
@@ -7,13 +7,17 @@ set -o pipefail
export SYSTEMD_LOG_LEVEL=debug
cleanup()
{
cleanup() {(
set +ex
if [ -z "${image_dir}" ]; then
return
fi
umount "${image_dir}/app0"
umount "${image_dir}/app1"
umount "${image_dir}/app-nodistro"
rm -rf "${image_dir}"
}
)}
udevadm control --log-level=debug