mirror of
https://github.com/esphome/esphome.git
synced 2024-11-28 01:34:18 +01:00
add way to exclude tests from all
This commit is contained in:
parent
4418ed3526
commit
08d35da057
3 changed files with 9 additions and 0 deletions
|
@ -53,6 +53,10 @@ for f in ./tests/components/$target_component/*.*.yaml; do
|
||||||
|
|
||||||
IFS='.' read -r -a file_name <<< "${folder_name[4]}"
|
IFS='.' read -r -a file_name <<< "${folder_name[4]}"
|
||||||
test_name="${file_name[0]}"
|
test_name="${file_name[0]}"
|
||||||
|
if [ "$test_name" = "exclude" ]; then
|
||||||
|
# this is not a test file. we need to skip it.
|
||||||
|
continue
|
||||||
|
fi
|
||||||
target_platform="${file_name[1]}"
|
target_platform="${file_name[1]}"
|
||||||
file_name_parts=${#file_name[@]}
|
file_name_parts=${#file_name[@]}
|
||||||
|
|
||||||
|
@ -64,6 +68,11 @@ for f in ./tests/components/$target_component/*.*.yaml; do
|
||||||
IFS='.' read -r -a file_name <<< "${folder_name[3]}"
|
IFS='.' read -r -a file_name <<< "${folder_name[3]}"
|
||||||
target_platform="${file_name[1]}"
|
target_platform="${file_name[1]}"
|
||||||
|
|
||||||
|
if [ -f "./tests/components/$target_component/exclude.$test_name.$target_platform.yaml" ]; then
|
||||||
|
echo "Component $target_component is excluded from testing on $target_platform"
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
start_esphome
|
start_esphome
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
0
tests/components/datetime/exclude.test.nrf52-mcumgr.yaml
Normal file
0
tests/components/datetime/exclude.test.nrf52-mcumgr.yaml
Normal file
Loading…
Reference in a new issue