diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-09-01 09:33:00 +0200 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-09-03 08:48:34 +0200 |
commit | 6b5d3d255695c558d3ef8677f57475e9ade5b079 (patch) | |
tree | ed34595e095f9980510bedc98f13d91c7d3f83db /test/units/TEST-58-REPART.sh | |
parent | TEST-58-REPART: Always run TEST-58-REPART in virtual machine (diff) | |
download | systemd-6b5d3d255695c558d3ef8677f57475e9ade5b079.tar.xz systemd-6b5d3d255695c558d3ef8677f57475e9ade5b079.zip |
TEST-58-REPART: Only skip part of testcase_minimize() that requires root
Diffstat (limited to '')
-rwxr-xr-x | test/units/TEST-58-REPART.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/units/TEST-58-REPART.sh b/test/units/TEST-58-REPART.sh index 6a70464887..968d332f06 100755 --- a/test/units/TEST-58-REPART.sh +++ b/test/units/TEST-58-REPART.sh @@ -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" |