Skip to content

CI: Fix path confusion in OpenCL Piglit execution

Daniel Stone requested to merge daniels/mesa:ci-cl-pwd into main

When we remove the contents of the results directory, we cd into it. The script expects that $PWD is /piglit, and $OLDPWD is the Mesa build directory, however the cd into the results directory will make $OLDPWD be $BUILDDIR/results.

This means that Piglit emits into results/results/ which looks weird, but more importantly also fails OpenCL Piglit execution, because we can't find our baseline result expectations.

Fix it by using an explicit variable rather than relying on history.

Fixes: 683ddf19 ("ci: remove results directory content only with piglit runners") Ref: !10856 (merged) Signed-off-by: Daniel Stone daniels@collabora.com

/cc @tanty @mupuf @zmike

Merge request reports