Merge pull request #118703 from mweinelt/home-assistant-precheck-componenttest
home-assistant: error out if enabled component test does not exist
This commit is contained in:
commit
024cee2534
|
@ -384,6 +384,14 @@ in with py.pkgs; buildPythonApplication rec {
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
# the tests require the existance of a media dir
|
# the tests require the existance of a media dir
|
||||||
mkdir /build/media
|
mkdir /build/media
|
||||||
|
|
||||||
|
# error out when component test directory is missing, otherwise hidden by xdist execution :(
|
||||||
|
for component in ${lib.concatStringsSep " " (map lib.escapeShellArg componentTests)}; do
|
||||||
|
test -d "tests/components/$component" || {
|
||||||
|
>2& echo "ERROR: Tests for component '$component' were enabled, but they do not exist!"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
|
|
Loading…
Reference in New Issue