diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2025-01-14 11:41:17 +0100 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2025-01-14 12:07:53 +0100 |
commit | 3c2fa8e0501f9f39b3b7ca0506a7d548a39af928 (patch) | |
tree | bedef271307d22812fedafe72c68433a2881b286 /test | |
parent | dissect: Use COPY_MERGE (diff) | |
download | systemd-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-x | test/fmf/integration-tests/test.sh | 4 |
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 |