Commit 20e0f170 authored by Alexandros Frantzis's avatar Alexandros Frantzis

Improve reference image fetching

Fetch only required reference images and reduce logging verbosity.
Signed-off-by: Alexandros Frantzis's avatarAlexandros Frantzis <alexandros.frantzis@collabora.com>
parent 2521ed4e
......@@ -139,8 +139,6 @@ mesa-build:
- bash -c "echo MESA_SHA=$MESA_SHA >>$CI_PROJECT_DIR/results/summary.txt"
script:
- cd $CI_PROJECT_DIR/traces-db
# Pull reference images
- git lfs pull -I '*.png'
# Run renderdoc traces with the surfaceless platform
- EGL_PLATFORM=surfaceless DISPLAY= $CI_PROJECT_DIR/.gitlab-ci/run-tests.sh rdc
# Run apitrace traces with xvfb (for now, until we add surfaceless support)
......
......@@ -13,6 +13,23 @@ fetch_trace()
fi
}
fetch_reference_images()
{
_device_name="$1"
_trace_type="$2"
_wildcard="**/$_device_name/*$_trace_type*.png"
echo -n "[fetch_trace] Fetching reference images '$_wildcard'... "
_output=$(git lfs pull -I "$_wildcard" 2>&1)
if [[ $? -ne 0 ]]; then
echo "ERROR"
echo "$_output"
else
echo "OK"
fi
}
fetch_reference_images "$DEVICE_NAME" "$1"
ret=0
for trace in $(git lfs ls-files -n -I \*.$1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment