ci: remove results directory content only with piglit runners
authorAndres Gomez <agomez@igalia.com>
Tue, 4 May 2021 19:10:54 +0000 (22:10 +0300)
committerMarge Bot <eric+marge@anholt.net>
Sat, 22 May 2021 06:26:28 +0000 (06:26 +0000)
commit683ddf19dc855136eb4fe2e907910cf09a0c10ba
tree245aea6ce2dd54fd2c97a741f5afbe6a759968c4
parentbe05fecca02dcda2cae7b759823c8f82298830ef
ci: remove results directory content only with piglit runners

Removing the directory itself can be problematic with certain runner
strategies (B2C).

v2:
  - Better deleting pattern matching since the previously used one was
    problematic and not pointed out by /bin/sh, as noticed by Emma.

v3:
  - Check that the results directory exists before attempting to
    delete its content.

Signed-off-by: Andres Gomez <agomez@igalia.com>
Reviewed-by: Martin Peres <martin.peres@mupuf.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10856>
.gitlab-ci/piglit/run.sh
.gitlab-ci/piglit/run_cl.sh