summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2025-01-14 11:41:17 +0100
committerDaan De Meyer <daan.j.demeyer@gmail.com>2025-01-14 12:07:53 +0100
commit3c2fa8e0501f9f39b3b7ca0506a7d548a39af928 (patch)
treebedef271307d22812fedafe72c68433a2881b286 /test
parentdissect: Use COPY_MERGE (diff)
downloadsystemd-3c2fa8e0501f9f39b3b7ca0506a7d548a39af928.tar.xz
systemd-3c2fa8e0501f9f39b3b7ca0506a7d548a39af928.zip
fmf: Only move logs if corresponding directory exists
Otherwise find fails with an error.
Diffstat (limited to 'test')
-rwxr-xr-xtest/fmf/integration-tests/test.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fmf/integration-tests/test.sh b/test/fmf/integration-tests/test.sh
index f82961f959..aff79340f7 100755
--- a/test/fmf/integration-tests/test.sh
+++ b/test/fmf/integration-tests/test.sh
@@ -145,8 +145,8 @@ mkosi -f sandbox \
--no-stdsplit \
--num-processes "$NPROC" && EC=0 || EC=$?
-find build/meson-logs -type f -exec mv {} "$TMT_TEST_DATA" \;
-find build/test/journal -type f -exec mv {} "$TMT_TEST_DATA" \;
+[[ -d build/meson-logs ]] && find build/meson-logs -type f -exec mv {} "$TMT_TEST_DATA" \;
+[[ -d build/test/journal ]] && find build/test/journal -type f -exec mv {} "$TMT_TEST_DATA" \;
popd