···384 preCheck = ''
385 # the tests require the existance of a media dir
386 mkdir /build/media
00000000387 '';
388389 passthru = {
···384 preCheck = ''
385 # the tests require the existance of a media dir
386 mkdir /build/media
387+388+ # error out when component test directory is missing, otherwise hidden by xdist execution :(
389+ for component in ${lib.concatStringsSep " " (map lib.escapeShellArg componentTests)}; do
390+ test -d "tests/components/$component" || {
391+ >2& echo "ERROR: Tests for component '$component' were enabled, but they do not exist!"
392+ exit 1
393+ }
394+ done
395 '';
396397 passthru = {