Skip to content

Commit

Permalink
Make sure all tests have passed inside QEMU (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimka-rs authored Feb 24, 2022
1 parent f6a9199 commit 35e4388
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ idf.py build
cd build
esptool.py --chip esp32 merge_bin --fill-flash-size 4MB -o flash_image.bin @flash_args
/opt/qemu/bin/qemu-system-xtensa -nographic -no-reboot -machine esp32 -drive file=flash_image.bin,if=mtd,format=raw -serial file:output.log
ruby /opt/Unity-2.5.2/auto/parse_output.rb -xml output.log
mv report.xml /github/workspace
grep -q -E '[[:digit:]]+ Tests [[:digit:]]+ Failures [[:digit:]]+ Ignored' output.log && ruby /opt/Unity-2.5.2/auto/parse_output.rb -xml output.log || exit 1
mv report.xml /github/workspace

0 comments on commit 35e4388

Please sign in to comment.