Skip to content

Commit

Permalink
add search to announce log
Browse files Browse the repository at this point in the history
  • Loading branch information
mykrupp committed Feb 18, 2022
1 parent d058917 commit 2209522
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/tests/ota_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ echo "Sending announce-ota-provider"

./out/chip-tool otasoftwareupdaterequestor announce-ota-provider 1 0 0 0 2 0 | tee /tmp/ota/chip-tool-announce-ota.txt

timeout 30 grep -q "OTA image downloaded to" <(tail -n0 -f /tmp/ota/requestor-log.txt)
timeout 30 grep -q "OTA image downloaded to" <(tail -n0 -f /tmp/ota/chip-tool-announce-ota.txt)

echo "Exiting, logs are in tmp/ota/"

kill "$provider_pid"
kill "$requestor_pid"

if grep "OTA image downloaded to" /tmp/ota/requestor-log.txt; then
if grep "OTA image downloaded to" /tmp/ota/chip-tool-announce-ota.txt; then
echo Test passed && exit 0
else
echo Test failed && exit 1
Expand Down

0 comments on commit 2209522

Please sign in to comment.