mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
fmf: Only move logs if corresponding directory exists
Otherwise find fails with an error.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user