mirror of
https://github.com/esphome/esphome.git
synced 2024-11-30 10:44:13 +01:00
Merge branch 'esphome:dev' into bisbastuner-bme680bsec-bsec-1.8.1492
This commit is contained in:
commit
1e483f8ae3
1 changed files with 7 additions and 2 deletions
|
@ -7,12 +7,13 @@ set -e
|
||||||
# - `c` - Component folder name to test. Default `*`.
|
# - `c` - Component folder name to test. Default `*`.
|
||||||
esphome_command="compile"
|
esphome_command="compile"
|
||||||
target_component="*"
|
target_component="*"
|
||||||
while getopts e:c: flag
|
while getopts e:c:t: flag
|
||||||
do
|
do
|
||||||
case $flag in
|
case $flag in
|
||||||
e) esphome_command=${OPTARG};;
|
e) esphome_command=${OPTARG};;
|
||||||
c) target_component=${OPTARG};;
|
c) target_component=${OPTARG};;
|
||||||
\?) echo "Usage: $0 [-e <config|compile|clean>] [-c <string>]" 1>&2; exit 1;;
|
t) requested_target_platform=${OPTARG};;
|
||||||
|
\?) echo "Usage: $0 [-e <config|compile|clean>] [-c <string>] [-t <string>]" 1>&2; exit 1;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -23,6 +24,10 @@ if ! [ -d "./tests/test_build_components/build" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
start_esphome() {
|
start_esphome() {
|
||||||
|
if [ -n "$requested_target_platform" ] && [ "$requested_target_platform" != "$target_platform" ]; then
|
||||||
|
echo "Skiping $target_platform"
|
||||||
|
return
|
||||||
|
fi
|
||||||
# create dynamic yaml file in `build` folder.
|
# create dynamic yaml file in `build` folder.
|
||||||
# `./tests/test_build_components/build/[target_component].[test_name].[target_platform_with_version].yaml`
|
# `./tests/test_build_components/build/[target_component].[test_name].[target_platform_with_version].yaml`
|
||||||
component_test_file="./tests/test_build_components/build/$target_component.$test_name.$target_platform_with_version.yaml"
|
component_test_file="./tests/test_build_components/build/$target_component.$test_name.$target_platform_with_version.yaml"
|
||||||
|
|
Loading…
Reference in a new issue