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:
@@ -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.
|
||||
|
||||
@@ -219,6 +219,7 @@ fi
|
||||
|
||||
|
||||
if [ ! -s $RESULTSFILE ]; then
|
||||
rm -rf "${RESULTS_DIR:?}/${__PREFIX}"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user