Skip to content

Commit

Permalink
Re-enable the TestCluster bits of the Tests job. (#8517)
Browse files Browse the repository at this point in the history
These got disabled by accident because that filename does not have a '_' in it.
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Sep 7, 2021
1 parent 2b926da commit 4130616
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scripts/tests/test_suites.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ usage() {
echo " -a APPLICATION: runs chip-tool against 'chip-<APPLICATION>-app' (default: all-clusters)"
echo " -i ITERATIONS: number of iterations to run (default: $iterations)"
echo " -h: this help message"
echo " -s CASE_NAME: runs single test case name (e.g. TC_OO_2_2"
echo " -s CASE_NAME: runs single test case name (e.g. Test_TC_OO_2_2"
echo " for Test_TC_OO_2_2.yaml) (by default, all are run)"
echo " -w COMMAND: prefix all instantiations with a command (e.g. valgrind) (default: '')"
echo ""
Expand All @@ -46,16 +46,15 @@ while getopts a:i:hs:w: flag; do
done

if [[ $application == "tv" ]]; then
declare test_filenames="TV_${single_case-*}.yaml"
declare -a test_array="($(find src/app/tests/suites -type f -name "$test_filenames" -exec basename {} .yaml \;))"
declare test_filenames="${single_case-TV_*}.yaml"
cp examples/tv-app/linux/include/endpoint-configuration/chip_tv_config.ini /tmp/chip_tv_config.ini
# in case there's no application argument
# always default to all-cluters app
else
application="all-clusters"
declare test_filenames="Test_${single_case-*}.yaml"
declare -a test_array="($(find src/app/tests/suites -type f -name "$test_filenames" -exec basename {} .yaml \;))"
declare test_filenames="${single_case-Test*}.yaml"
fi
declare -a test_array="($(find src/app/tests/suites -type f -name "$test_filenames" -exec basename {} .yaml \;))"

if [[ $iterations == 0 ]]; then
echo "Invalid iteration count: '$1'"
Expand Down

0 comments on commit 4130616

Please sign in to comment.