From a3c6f7aa5a30ea48a2aaaed6f8c7731d536c4f58 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Tue, 19 Nov 2024 13:01:47 +0100 Subject: [PATCH] ci/android: set XDG_CACHE_HOME and pass --shader-cache-dir to deqp-runner Set XDG_CACHE_HOME when invoking deqp-runner so that mesa can create the shader cache and avoid this error: ----------------------------------------------------------------------- ERROR - dEQP error: Failed to create //.cache for shader cache (Read-only file system)---disabling. ----------------------------------------------------------------------- And also pass --shader-cache-dir to deqp-runner for vulkan tests. Reviewed-by: Eric Engestrom Part-of: --- .gitlab-ci/cuttlefish-runner.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci/cuttlefish-runner.sh b/.gitlab-ci/cuttlefish-runner.sh index fef18e72128..1141fb434f9 100755 --- a/.gitlab-ci/cuttlefish-runner.sh +++ b/.gitlab-ci/cuttlefish-runner.sh @@ -155,13 +155,16 @@ AOSP_RESULTS=/data/results uncollapsed_section_switch cuttlefish_test "cuttlefish: testing" set +e -$ADB shell "mkdir ${AOSP_RESULTS}; cd ${AOSP_RESULTS}/..; ./deqp-runner \ +$ADB shell "mkdir ${AOSP_RESULTS}; cd ${AOSP_RESULTS}/..; \ + XDG_CACHE_HOME=/data/local/tmp \ + ./deqp-runner \ suite \ --suite /data/deqp-$DEQP_SUITE.toml \ --output $AOSP_RESULTS \ --skips /data/all-skips.txt $DEQP_SKIPS \ --flakes /data/$GPU_VERSION-flakes.txt \ --testlog-to-xml /data/testlog-to-xml \ + --shader-cache-dir /data/local/tmp \ --fraction-start ${CI_NODE_INDEX:-1} \ --fraction $(( CI_NODE_TOTAL * ${DEQP_FRACTION:-1})) \ --jobs ${FDO_CI_CONCURRENT:-4}"