···384384 preCheck = ''
385385 # the tests require the existance of a media dir
386386 mkdir /build/media
387387+388388+ # error out when component test directory is missing, otherwise hidden by xdist execution :(
389389+ for component in ${lib.concatStringsSep " " (map lib.escapeShellArg componentTests)}; do
390390+ test -d "tests/components/$component" || {
391391+ >2& echo "ERROR: Tests for component '$component' were enabled, but they do not exist!"
392392+ exit 1
393393+ }
394394+ done
387395 '';
388396389397 passthru = {