mirror of
https://github.com/systemd/systemd.git
synced 2025-02-03 17:47:28 +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() {
|
testcase_minimize() {
|
||||||
local defs imgs output
|
local defs imgs output
|
||||||
|
|
||||||
if systemd-detect-virt --quiet --container; then
|
|
||||||
echo "Skipping minimize test in container."
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "*** minimization ***"
|
echo "*** minimization ***"
|
||||||
|
|
||||||
defs="$(mktemp --directory "/tmp/test-repart.defs.XXXXXXXXXX")"
|
defs="$(mktemp --directory "/tmp/test-repart.defs.XXXXXXXXXX")"
|
||||||
@ -1114,6 +1109,11 @@ EOF
|
|||||||
|
|
||||||
# Check that we can dissect, mount and unmount a minimized image.
|
# 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"
|
||||||
systemd-dissect "$imgs/zzz" -M "$imgs/mnt"
|
systemd-dissect "$imgs/zzz" -M "$imgs/mnt"
|
||||||
systemd-dissect -U "$imgs/mnt"
|
systemd-dissect -U "$imgs/mnt"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user