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:
parent
759b4b4a2a
commit
d3fcb73678
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user