ci/trace: Move trace cleanup to Piglit runner

No sense in polluting our common init code with this.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31110>
This commit is contained in:
Daniel Stone
2024-08-28 18:05:50 +01:00
parent 75c4f447bd
commit 8b3a49d1ec
2 changed files with 1 additions and 2 deletions

View File

@@ -208,8 +208,6 @@ set -e
# Let's make sure the results are always stored in current working directory
mv -f ${RESULTS_DIR} ./ 2>/dev/null || true
[ ${EXIT_CODE} -ne 0 ] || rm -rf results/trace/"$PIGLIT_REPLAY_DEVICE_NAME"
# Make sure that capture-devcoredump is done before we start trying to tar up
# artifacts -- if it's writing while tar is reading, tar will throw an error and
# kill the job.

View File

@@ -219,6 +219,7 @@ fi
if [ ! -s $RESULTSFILE ]; then
rm -rf "${RESULTS_DIR:?}/${__PREFIX}"
exit 0
fi