summaryrefslogtreecommitdiff
path: root/test/TEST-58-REPART
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2022-11-10 15:40:00 +0100
committerDaan De Meyer <daan.j.demeyer@gmail.com>2022-11-15 20:23:51 +0100
commite2d057456d69906fab64984d93c51a839f2d8702 (patch)
tree01cb8709ce98098d7c2b9c14afc46d6b3f89f9ec /test/TEST-58-REPART
parenta64769d605b21d183972b585719d99aa2af44977 (diff)
downloadsystemd-e2d057456d69906fab64984d93c51a839f2d8702.tar.gz
repart: Run most repart integration tests without root privileges
To make sure rootless mode keeps working, let's run all repart integration tests that we can without root privileges. The only ones we need to keep running with root privileges are the tests that operate on a block/loop device and those that use --image=.
Diffstat (limited to 'test/TEST-58-REPART')
-rwxr-xr-xtest/TEST-58-REPART/test.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/TEST-58-REPART/test.sh b/test/TEST-58-REPART/test.sh
index fb4a05fc77..0d513cf85b 100755
--- a/test/TEST-58-REPART/test.sh
+++ b/test/TEST-58-REPART/test.sh
@@ -12,14 +12,15 @@ TEST_FORCE_NEWIMAGE=1
test_append_files() {
if ! get_bool "${TEST_NO_QEMU:=}"; then
install_dmevent
- if command -v openssl >/dev/null 2>&1; then
- inst_binary openssl
- fi
- inst_binary mcopy
instmods dm_verity =md
generate_module_dependencies
image_install -o /sbin/mksquashfs
fi
+
+ inst_binary mcopy
+ if command -v openssl >/dev/null 2>&1; then
+ inst_binary openssl
+ fi
}
do_test "$@"