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
if [[ "$#" -gt 1 ]]; then
if [[ $1 == "pkcs11" ]]; then
run_in_docker ./tests/start-up-and-test-pkcs11.sh
elif [[ $1 == "pytest" ]]; then
run_in_docker ./tests/start-up-and-test.sh
fi
if [[ $1 == "pkcs11" ]]; then
run_in_docker ./tests/start-up-and-test-pkcs11.sh
else
run_in_docker ./tests/start-up-and-test.sh
fi

View File

@ -13,8 +13,9 @@ sleep 2
rm -f memory.flash
tar -xf tests/memory.tar.gz
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}" || {
echo -e "${FAIL}"
exit 1
}
sleep 2