mirror of
https://github.com/systemd/systemd.git
synced 2025-01-09 01:18:19 +03:00
TEST-58-REPART: Only skip part of testcase_minimize() that requires root
This commit is contained in:
parent
d55d756c42
commit
6b5d3d2556
@ -1067,11 +1067,6 @@ EOF
|
||||
testcase_minimize() {
|
||||
local defs imgs output
|
||||
|
||||
if systemd-detect-virt --quiet --container; then
|
||||
echo "Skipping minimize test in container."
|
||||
return
|
||||
fi
|
||||
|
||||
echo "*** minimization ***"
|
||||
|
||||
defs="$(mktemp --directory "/tmp/test-repart.defs.XXXXXXXXXX")"
|
||||
@ -1114,6 +1109,11 @@ EOF
|
||||
|
||||
# Check that we can dissect, mount and unmount a minimized image.
|
||||
|
||||
if systemd-detect-virt --quiet --container; then
|
||||
echo "Skipping minimize dissect, mount and unmount test in container."
|
||||
return
|
||||
fi
|
||||
|
||||
systemd-dissect "$imgs/zzz"
|
||||
systemd-dissect "$imgs/zzz" -M "$imgs/mnt"
|
||||
systemd-dissect -U "$imgs/mnt"
|
||||
|
Loading…
Reference in New Issue
Block a user