@@ -68,7 +68,6 @@ Input Options:
68
68
src/python_testing scripts.
69
69
Defaults to yes.
70
70
--extra_packages PACKAGES Install extra Python packages from PyPI
71
- --include_yamltests Whether to install the matter_yamltests wheel.
72
71
-z --pregen_dir DIRECTORY Directory where generated zap files have been pre-generated.
73
72
"
74
73
}
@@ -129,9 +128,6 @@ while (($#)); do
129
128
extra_packages=$2
130
129
shift
131
130
;;
132
- --include_yamltests)
133
- include_yamltests=" yes"
134
- ;;
135
131
--pregen_dir | -z)
136
132
pregen_dir=$2
137
133
shift
@@ -187,15 +183,6 @@ else
187
183
WHEEL=(" $OUTPUT_ROOT " /controller/python/chip* .whl)
188
184
fi
189
185
190
- if [ -n " $include_yamltests " ]; then
191
- YAMLTESTS_GN_LABEL=" //scripts:matter_yamltests_distribution._build_wheel"
192
-
193
- # Add wheels from pw_python_package or pw_python_distribution templates.
194
- WHEEL+=(
195
- " $( ls -tr " $( wheel_output_dir " $YAMLTESTS_GN_LABEL " ) " /* .whl | head -n 1) "
196
- )
197
- fi
198
-
199
186
if [ -n " $extra_packages " ]; then
200
187
WHEEL+=(" $extra_packages " )
201
188
fi
@@ -217,7 +204,14 @@ if [ -n "$install_virtual_env" ]; then
217
204
" $ENVIRONMENT_ROOT " /bin/pip install --upgrade " ${WHEEL[@]} "
218
205
219
206
if [ " $install_pytest_requirements " = " yes" ]; then
207
+ YAMLTESTS_GN_LABEL=" //scripts:matter_yamltests_distribution._build_wheel"
208
+ # Add wheels from pw_python_package or pw_python_distribution templates.
209
+ YAMLTEST_WHEEL=(
210
+ " $( ls -tr " $( wheel_output_dir " $YAMLTESTS_GN_LABEL " ) " /* .whl | head -n 1) "
211
+ )
212
+
220
213
echo_blue " Installing python test dependencies ..."
214
+ " $ENVIRONMENT_ROOT " /bin/pip install --upgrade " ${YAMLTEST_WHEEL[@]} "
221
215
" $ENVIRONMENT_ROOT " /bin/pip install -r " $CHIP_ROOT /scripts/tests/requirements.txt"
222
216
" $ENVIRONMENT_ROOT " /bin/pip install -r " $CHIP_ROOT /src/python_testing/requirements.txt"
223
217
fi
0 commit comments