Merge pull request #118703 from mweinelt/home-assistant-precheck-componenttest

home-assistant: error out if enabled component test does not exist

authored by

Martin Weinelt and committed by
GitHub
024cee25 87df3e15

+8
+8
pkgs/servers/home-assistant/default.nix
··· 384 384 preCheck = '' 385 385 # the tests require the existance of a media dir 386 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 387 395 ''; 388 396 389 397 passthru = {