]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: /lib64 is not guaranteed to exist, do not try to copy it if not
authorLuca Boccassi <luca.boccassi@gmail.com>
Fri, 4 Jul 2025 01:18:43 +0000 (02:18 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 4 Jul 2025 16:21:16 +0000 (17:21 +0100)
test/units/TEST-13-NSPAWN.nspawn.sh

index a0fbb3637d6973e54595af2ce437eb949b596ea0..db4a36ee3c9db136e0b485306a845d4c110b1f92 100755 (executable)
@@ -1126,7 +1126,10 @@ testcase_check_os_release() {
     base="$(mktemp -d /var/lib/machines/TEST-13-NSPAWN.check_os_release_base.XXX)"
     root="$(mktemp -d /var/lib/machines/TEST-13-NSPAWN.check_os_release.XXX)"
     create_dummy_container "$base"
-    cp -d "$base"/{bin,sbin,lib,lib64} "$root/"
+    cp -d "$base"/{bin,sbin,lib} "$root/"
+    if [ -d "$base"/lib64 ]; then
+        cp -d "$base"/lib64 "$root/"
+    fi
     common_opts=(
         --boot
         --register=no