pySim-shell: add new commandline option "--skip-card-init"
by default pySim-shell does all kinds of probing and file selection on startup. This is to determine the card type and to find a suitable card profile. However, in case the card is non yet provisioned this probing may cause a error messages and even might upset the cards internal state. So let's have a commandline option thrugh which we can instruct pySim-shell to skip any initialization and to give us a prompt immediately, so that we can enter custom APDUs Related: OS#6367 Change-Id: I1d8a57de201fe7ad7cbcbc6f72969ea8521e821d
This commit is contained in:
@@ -228,7 +228,8 @@ class UnittestUtils(unittest.TestCase):
|
||||
def runPySimShell(self, cardname:str, script:str,
|
||||
add_adm:bool = False,
|
||||
add_csv:bool = False,
|
||||
no_exceptions = False):
|
||||
no_exceptions = False,
|
||||
skip_card_init = False):
|
||||
|
||||
""" execute pySimShell.py. Each testcase should run pySim-shell at least once. The working directlry is the
|
||||
testcase directory.
|
||||
@@ -261,6 +262,8 @@ class UnittestUtils(unittest.TestCase):
|
||||
if add_csv:
|
||||
adm1 = self.cards[cardname]['adm1']
|
||||
cmdline += " --csv " + self.top_dir + CARD_DATA_CSV
|
||||
if skip_card_init:
|
||||
cmdline += " --skip-card-init"
|
||||
|
||||
# Execute commandline
|
||||
cmdline += " > " + logfile_name + " 2>&1"
|
||||
|
||||
Reference in New Issue
Block a user