summaryrefslogtreecommitdiffstats
path: root/test/test-functions
diff options
context:
space:
mode:
authorFranck Bui <fbui@suse.com>2024-07-02 15:20:18 +0200
committerFranck Bui <fbui@suse.com>2024-07-02 19:06:21 +0200
commit855bad331e28a03d7ad5831caacd3481db938180 (patch)
tree529aa17127d7ab88fa1c45126e2846dbb5e05c62 /test/test-functions
parenttest: fix TEST-24-CRYPTSETUP on SUSE (diff)
downloadsystemd-855bad331e28a03d7ad5831caacd3481db938180.tar.xz
systemd-855bad331e28a03d7ad5831caacd3481db938180.zip
test: preserve symlink in inst_recursive()
On SUSE this function is used to copy symlinks installed in *.wants/ directories.
Diffstat (limited to 'test/test-functions')
-rw-r--r--test/test-functions2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test-functions b/test/test-functions
index 16e9c9c12a..03f188b0a2 100644
--- a/test/test-functions
+++ b/test/test-functions
@@ -2960,6 +2960,8 @@ inst_recursive() {
while read -r item; do
if [[ -d "$item" ]]; then
inst_dir "$item"
+ elif [[ -L "$item" ]]; then
+ inst_symlink "$item"
elif [[ -f "$item" ]]; then
inst_simple "$item"
fi