modified assembly tests: no more QR code steep, and logging tensions/data measured by axp209

This commit is contained in:
busebusemac 2020-09-21 23:09:28 +02:00
parent 9061052e2e
commit ea3cd5f1bc
2 changed files with 39 additions and 22 deletions

2
.gitignore vendored
View File

@ -3,3 +3,5 @@
*/output/*
*~
br.log
id_rsa_funkey
id_rsa_funkey.pub

View File

@ -111,6 +111,13 @@ function launch_tests_up_until_magnet {
fi
sync
## Dump power info from AXP209
echo "AXP209 DUMP BATTERY:"
cat /sys/class/power_supply/axp20x-battery/uevent
echo "AXP209 DUMP USB:"
cat /sys/class/power_supply/axp20x-usb//uevent
sync
## Launch prod screen test display
echo "TEST DISPLAY:"
sync
@ -275,6 +282,9 @@ function launch_tests_after_magnet {
fi
sync
## Bypassing QRcode screen
perform_QRcode_test=false
if $perform_QRcode_test; then
## Show datamatrix
test -f $QR_CODE_IMG && rm $QR_CODE_IMG
echo "Writing QR code img to $QR_CODE_IMG"
@ -287,7 +297,6 @@ function launch_tests_after_magnet {
if [[ "$res" == "0" ]]; then
echo " $res"
echo " OK"
stop_loop=true
else
echo " $res"
echo " FAIL"
@ -295,6 +304,7 @@ function launch_tests_after_magnet {
return
fi
sync
fi
}
@ -322,10 +332,15 @@ while ! $stop_loop; do
test_failed=false
# Check if first start or instant action
if [[ -f $MAGNET_DETECTED_FILE ]]; then
launch_tests_after_magnet 2>&1 >> $LOG_FILE
else
if [[ ! -f $MAGNET_DETECTED_FILE ]]; then
launch_tests_up_until_magnet 2>&1 >> $LOG_FILE
else
launch_tests_after_magnet 2>&1 >> $LOG_FILE
## Exit loop condition
if ! $test_failed; then
stop_loop=true
fi
fi
# Show fail screen if some tests failed