1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-08 08:58:27 +03:00

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:27:31 +09:00
parent 759b4b4a2a
commit d3fcb73678

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