From 0f7379e30895a03424174244615e1b8f9c5a0f96 Mon Sep 17 00:00:00 2001 From: Andres Gomez Date: Wed, 10 Feb 2021 01:11:07 +0200 Subject: [PATCH] ci: tracie dashboard URLs only in the failure after the testcase When adding the direct link to the diff page in the resulting JUnit XML file we were not correctly skipping the first line from the matching range. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4261 Fixes: 27f8c466486 ("ci: recover tracie dashboard URLs for failing traces") Signed-off-by: Andres Gomez Acked-by: Juan A. Suarez Part-of: --- .gitlab-ci/piglit/run.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci/piglit/run.sh b/.gitlab-ci/piglit/run.sh index 25d8f89dd59..5beeeb9337d 100755 --- a/.gitlab-ci/piglit/run.sh +++ b/.gitlab-ci/piglit/run.sh @@ -173,7 +173,12 @@ replay_minio_upload_images() { __PIGLIT_TESTCASE_CLASSNAME="piglit\.trace\.$PIGLIT_REPLAY_DEVICE_NAME\.$(dirname $__TRACE | sed 's%/%\\.%g;s@%@\\%@')" __PIGLIT_TESTCASE_NAME="$(basename $__TRACE | sed 's%\.%_%g;s@%@\\%@')" __DASHBOARD_URL="https://tracie.freedesktop.org/dashboard/imagediff/${CI_PROJECT_PATH}/${CI_JOB_ID}/${__TRACE}" - sed '\%%{s%%To view the image differences visit: '"${__DASHBOARD_URL}"'%}' \ + __START_TEST_PATTERN='To view the image differences visit: '"${__DASHBOARD_URL}"'%}' \ -i "$RESULTS"/junit.xml fi