Fix startup

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2023-10-09 17:58:32 +02:00
parent 42a9434c50
commit 78cbe59e64
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3
2 changed files with 4 additions and 8 deletions

View file

@ -2,13 +2,8 @@
source tests/docker_env.sh source tests/docker_env.sh
if [[ "$#" -gt 1 ]]; then if [[ $1 == "pkcs11" ]]; then
if [[ $1 == "pkcs11" ]]; then run_in_docker ./tests/start-up-and-test-pkcs11.sh
run_in_docker ./tests/start-up-and-test-pkcs11.sh
elif [[ $1 == "pytest" ]]; then
run_in_docker ./tests/start-up-and-test.sh
fi
else else
run_in_docker ./tests/start-up-and-test.sh run_in_docker ./tests/start-up-and-test.sh
fi fi

View file

@ -13,8 +13,9 @@ sleep 2
rm -f memory.flash rm -f memory.flash
tar -xf tests/memory.tar.gz tar -xf tests/memory.tar.gz
echo -n "Start Pico HSM... " echo -n "Start Pico HSM... "
./build_in_docker/pico_hsm > /dev/null 2>&1 & ./build_in_docker/pico_hsm &
test $? -eq 0 && echo -e "${OK}" || { test $? -eq 0 && echo -e "${OK}" || {
echo -e "${FAIL}" echo -e "${FAIL}"
exit 1 exit 1
} }
sleep 2