]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
fmf: Move meson logs and failed test journals to test artifacts dir
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 9 Jan 2025 14:13:18 +0000 (15:13 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 15 Jan 2025 09:56:07 +0000 (09:56 +0000)
(cherry picked from commit 0e444c948e7d8ddbdec83116b68af7d876e2d2f6)

test/fmf/integration-tests/test.sh

index 8cea79cf3027449e71f96dc7a16bcf70835c0718..762016f2a5c1c335a6b29a2ba6dbb8f79ec98ca1 100755 (executable)
@@ -125,6 +125,11 @@ mkosi -f sandbox \
     --suite integration-tests \
     --print-errorlogs \
     --no-stdsplit \
-    --num-processes "$(($(nproc) - 1))"
+    --num-processes "$(($(nproc) - 1))" && 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" \;
 
 popd
+
+exit "$EC"