Skip to content

Commit

Permalink
Restyled by shfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and pan-apple committed May 14, 2020
1 parent 9279616 commit 71425ab
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/chip-tests/esp32/qemu_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ chip_dir="$here/../../.."
set -e

die() {
echo "$me: *** ERROR: " "${*}"
exit 1
echo "$me: *** ERROR: " "${*}"
exit 1
}

# move to the example folder, I don't work anywhere else
Expand All @@ -45,12 +45,12 @@ trap "{ rm -f $flash_image_file; }" EXIT

# If the logs contain failure message
if grep -F "] : FAILED" results.log; then
die 'Some tests failed. Check results.log'
die 'Some tests failed. Check results.log'
fi

# If the logs do not contain final success status
if grep -F "CHIP-tests: CHIP test status: 0" results.log; then
echo "$me: All tests passed"
echo "$me: All tests passed"
else
die 'Tests did not run to completion. Check results.log'
die 'Tests did not run to completion. Check results.log'
fi

0 comments on commit 71425ab

Please sign in to comment.