Skip to content
Success

Changes

Summary

  1. pySim-shell_test/utils: print logfile on all types of errors (details)
  2. pySim-shell: allow checking of APDU responses (details)
  3. pySim-shell: fix reset command for no-profile mode (details)
Commit 882e24677ff0532d4967b1480c826cad2d0ec1f5 by pmaier@sysmocom.de
pySim-shell_test/utils: print logfile on all types of errors

When pySim-shell has problems starting up, it exits with an error
code. This is detected by the testsuite, but it also causes an
early exit, so that the log file content are not printed.

Change-Id: Ic0f34eda32a7c557810abcb05a84e343741fdb8a
The file was modifiedtests/pySim-shell_test/utils.py
Commit 5887fb70fb34d085ecd76562efd13ed74f1cc822 by pmaier@sysmocom.de
pySim-shell: allow checking of APDU responses

The "apdu" command allows us to send custom APDUs to a card. This command is
often used in low level initialization scripts or tests. To stop the script
execution in case of an error, the command allows us to specify a status word
that must match the status word of the response. But we have no such mechanism
for the response itself. Let's add another parameter where we can pass a regex
that the response must match.

Related: OS#6367
Change-Id: I97bbcdf37bdcf00ad50a875b96940c211de7073d
The file was modifiedpySim-shell.py
Commit daa1c74047bb3155b3340bf216fbca8c514c2ddd by pmaier@sysmocom.de
pySim-shell: fix reset command for no-profile mode

There are situations where no card profile can be determined. In this case no
RuntimeState will be present. This is in particular the case when pySim-shell
is used on a card that is not provisioned/initialized yet. In those cases we
have to go the direct route and reset the card directly.

Related: OS#6367
Change-Id: I27bf9fdb131d8bdeba07f4dfd2b76b38f9bfdd17
The file was modifiedpySim-shell.py