From: Daan De Meyer Date: Tue, 14 Jan 2025 10:41:17 +0000 (+0100) Subject: fmf: Only move logs if corresponding directory exists X-Git-Tag: v258-rc1~1626 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3c2fa8e0501f9f39b3b7ca0506a7d548a39af928;p=thirdparty%2Fsystemd.git fmf: Only move logs if corresponding directory exists Otherwise find fails with an error. --- diff --git a/test/fmf/integration-tests/test.sh b/test/fmf/integration-tests/test.sh index f82961f9599..aff79340f79 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