JBR-1618: fixed misprint, added saving screenshots in case of failure

(cherry picked from commit e4a3889cf0)
(cherry picked from commit 3959ac1680)
This commit is contained in:
Vitaly Provodin
2019-07-29 14:28:06 +07:00
committed by jbrbot
parent 6959b449e1
commit 62a7848eb1

View File

@@ -47,7 +47,7 @@ cd ${TESTSRC}
${TESTJAVA}/bin/javac -d ${TESTCLASSES} Font430.java
${TESTJAVA}/bin/java -cp ${TESTCLASSES} Font430 t1.bmp true
${TESTJAVA}/bin/java -cp ${TESTCLASSES} Font430 t2.bmp true
${TESTJAVA}/bin/java -cp ${TESTCLASSES} Font430 t2.bmp false
cmp t1.bmp t2.bmp
exit_code=$?
@@ -56,6 +56,7 @@ case $exit_code in
0) echo "PASSED"
;;
*) echo "FAILED: $exit_code"
mv t[1..2].bmp ${TESTCLASSES}
exit 1
;;
esac