added battery voltages checks in assembly tests

This commit is contained in:
Vincent-FK 2021-04-11 16:48:23 +02:00
parent 8a5fe96fc7
commit dc654d9e65
2 changed files with 11 additions and 18 deletions

View File

@ -99,24 +99,17 @@ function launch_tests_up_until_magnet {
echo " OK" echo " OK"
sync sync
## Check if battery present ## Battery tests
if [[ $(cat /sys/class/power_supply/axp20x-battery/present) == "0" ]]; then echo "TEST BATTERY:"
sync
## Launch screen to wait for battery $PROD_SCREEN_BIN WAIT_BATTERY 2>&1
echo "TEST BATTERY:" res="$?"
sync echo " $res"
$PROD_SCREEN_BIN WAIT_BATTERY 2>&1 if [[ "$res" == "0" ]]; then
res="$?"
echo " $res"
if [[ "$res" == "0" ]]; then
echo " OK"
else
echo " FAIL"
test_failed=true
fi
else
echo "TEST BATTERY:"
echo " OK" echo " OK"
else
echo " FAIL"
test_failed=true
fi fi
sync sync

View File

@ -4,7 +4,7 @@
# #
################################################################################ ################################################################################
PRODSCREENS_VERSION = FunKey-ProdScreens-FunKey-1.1.1 PRODSCREENS_VERSION = 428290b
PRODSCREENS_SITE_METHOD = git PRODSCREENS_SITE_METHOD = git
PRODSCREENS_SITE = https://github.com/FunKey-Project/FunKey-ProdScreens.git PRODSCREENS_SITE = https://github.com/FunKey-Project/FunKey-ProdScreens.git
PRODSCREENS_SITE_LICENSE = GPL-2.1+ PRODSCREENS_SITE_LICENSE = GPL-2.1+