Skip to content

Commit 5ae40f1

Browse files
authored
Arm backend: Let test_pytest_*_vkml() run only vkml tests (#14437)
This will avoid redundant testing.
1 parent 9b25e0e commit 5ae40f1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

backends/arm/test/test_arm_baremetal.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,25 +155,26 @@ test_pytest_ethosu_fvp() { # Same as test_pytest but also sometime verify using
155155

156156

157157
test_pytest_ops_vkml() { # Same as test_pytest but also sometime verify using VKML runtime
158-
echo "${TEST_SUITE_NAME}: Run pytest with VKML"
158+
echo "${TEST_SUITE_NAME}: Run pytest operator tests with VKML runtime"
159159

160160
backends/arm/scripts/build_executorch.sh
161161
backends/arm/test/setup_testing_vkml.sh
162162

163-
pytest --verbose --color=yes --numprocesses=auto --durations=10 backends/arm/test/ --ignore=backends/arm/test/models
163+
pytest --verbose --color=yes --numprocesses=auto --durations=10 backends/arm/test/ \
164+
--ignore=backends/arm/test/models -k _vgf_
164165
echo "${TEST_SUITE_NAME}: PASS"
165166
}
166167

167168
test_pytest_models_vkml() { # Same as test_pytest but also sometime verify VKML runtime
168-
echo "${TEST_SUITE_NAME}: Run pytest with VKML"
169+
echo "${TEST_SUITE_NAME}: Run pytest model tests with VKML runtime"
169170

170171
backends/arm/scripts/build_executorch.sh
171172
backends/arm/test/setup_testing_vkml.sh
172173

173174
# Install model dependencies for pytest
174175
source backends/arm/scripts/install_models_for_test.sh
175176

176-
pytest --verbose --color=yes --numprocesses=auto --durations=0 backends/arm/test/models
177+
pytest --verbose --color=yes --numprocesses=auto --durations=0 backends/arm/test/models -k _vgf_
177178
echo "${TEST_SUITE_NAME}: PASS"
178179
}
179180

0 commit comments

Comments
 (0)