File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ sleep 1
1818rm -f memory.flash
1919echo -n " Start Pico OpenPGP..."
2020./build_in_docker/pico_openpgp > /dev/null 2>&1 &
21+ PID=$!
2122test $? -eq 0 && echo -n " ." || fail
2223sleep 1
2324ATR=" 3b:da:18:ff:81:b1:fe:75:1f:03:00:31:f5:73:c0:01:60:00:90:00:1c"
@@ -27,4 +28,19 @@ test $? -eq 0 && echo -e "${OK}" || fail
2728
2829pytest tests -W ignore::DeprecationWarning
2930
31+ echo -n " Stopping Pico OpenPGP..."
32+ kill " $PID " 2> /dev/null || true
33+ kill -9 " $PID " 2> /dev/null || true
34+ test $? -eq 0 && echo -e " ${OK} " || fail
35+ sleep 1
36+ rm -f memory.flash
37+ echo -n " Start Pico OpenPGP..."
38+ ./build_in_docker/pico_openpgp > /dev/null 2>&1 &
39+ PID=$!
40+ test $? -eq 0 && echo -n " ." || fail
41+ sleep 1
42+ e=$( opensc-tool -an 2>&1 )
43+ grep -q " ${ATR} " <<< $e && echo -n " ." || fail
44+ test $? -eq 0 && echo -e " ${OK} " || fail
45+
3046./tests/scripts/cli-test.sh
You can’t perform that action at this time.
0 commit comments