Skip to content

Commit

Permalink
[CI Debug] List all commissionable nodes before starting CI runs (#11613
Browse files Browse the repository at this point in the history
)

* [CI Debug] List all commissionable nodes before starting CI runs

* Workaround missing dns-sd on linux, and timeout return error

* Ignore in a different way

* Restyle

* Reduce timeout to 1 second to avoid timing out the tests
  • Loading branch information
sagar-apple authored and pull[bot] committed Dec 14, 2021
1 parent 47e3b4d commit 1562192
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/tests/test_suites.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ for j in "${iter_array[@]}"; do
# kicking off the subshell, sometimes we try to do it before
# the data is there yet.
background_pid="$(</tmp/pid)"
# Only look for commissionable nodes if dns-sd is available
if command -v dns-sd &>/dev/null; then
echo " * [CI DEBUG] Looking for commissionable Nodes"
# Ignore the error that timeout generates
cat <(timeout 1 dns-sd -B _matterc._udp)
fi
echo " * Pairing to device"
"${test_case_wrapper[@]}" out/debug/standalone/chip-tool pairing qrcode "$node_id" MT:D8XA0CQM00KA0648G00 | tee "$pairing_log_file"
echo " * Starting test run: $i"
Expand Down

0 comments on commit 1562192

Please sign in to comment.