diff --git a/.gitlab-ci/piglit/run.sh b/.gitlab-ci/piglit/run.sh index d98c562c4b0..5c21ef5ccbd 100755 --- a/.gitlab-ci/piglit/run.sh +++ b/.gitlab-ci/piglit/run.sh @@ -176,7 +176,9 @@ replay_minio_upload_images() { SANITY_MESA_VERSION_CMD="$SANITY_MESA_VERSION_CMD | tee /tmp/version.txt | grep \"Mesa $MESA_VERSION\(\s\|$\)\"" -rm -rf results +if [ -d results ]; then + cd results && rm -rf ..?* .[!.]* * +fi cd /piglit if [ -n "$USE_CASELIST" ]; then diff --git a/.gitlab-ci/piglit/run_cl.sh b/.gitlab-ci/piglit/run_cl.sh index 506fb31867d..a1f01bb59e5 100755 --- a/.gitlab-ci/piglit/run_cl.sh +++ b/.gitlab-ci/piglit/run_cl.sh @@ -5,7 +5,9 @@ set -o xtrace VERSION=`cat install/VERSION` -rm -rf results +if [ -d results ]; then + cd results && rm -rf ..?* .[!.]* * +fi cd /piglit export OCL_ICD_VENDORS=$OLDPWD/install/etc/OpenCL/vendors/