Skip to content

Commit 35e4388

Browse files
authored
Make sure all tests have passed inside QEMU (#3)
1 parent f6a9199 commit 35e4388

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ idf.py build
77
cd build
88
esptool.py --chip esp32 merge_bin --fill-flash-size 4MB -o flash_image.bin @flash_args
99
/opt/qemu/bin/qemu-system-xtensa -nographic -no-reboot -machine esp32 -drive file=flash_image.bin,if=mtd,format=raw -serial file:output.log
10-
ruby /opt/Unity-2.5.2/auto/parse_output.rb -xml output.log
11-
mv report.xml /github/workspace
10+
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
11+
mv report.xml /github/workspace

0 commit comments

Comments
 (0)