mirror of
https://github.com/systemd/systemd
synced 2024-09-06 16:56:43 +00:00
test: Fail sysext test if reusing a root directory
This commit is contained in:
parent
33cb10f68d
commit
73cfa16d16
|
@ -808,6 +808,10 @@ prep_root() {
|
|||
local r=${1}; shift
|
||||
local h=${1}; shift
|
||||
|
||||
if [[ -d ${r} ]]; then
|
||||
die "${r@Q} is being reused as a root, possibly a result of copy-pasting some test case and forgetting to rename the root directory name"
|
||||
fi
|
||||
|
||||
mkdir -p "${r}${h}" "${r}/usr/lib" "${r}/var/lib/extensions" "${r}/var/lib/extensions.mutable"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue