Changes:
[pmaier@sysmocom.de] fix typo
[pmaier@sysmocom.de] commands: fix double space character in apidoc
[pmaier@sysmocom.de] commands: fix apidoc (wrong order of parameters)
[pmaier@sysmocom.de] pySim-shell_test/utils: print logfile on all types of errors
[pmaier@sysmocom.de] pySim/transport fix APDU/TPDU mapping
------------------------------------------ [...truncated 1.97 MiB...] "file_identifier": "a515", "proprietary_information": { "uicc_characteristics": "71", "available_memory": 353360, "supported_filesystem_commands": { "terminal_capability": true } }, "life_cycle_status_integer": "operational_activated", "security_attrib_compact": "00", "pin_status_template_do": [ { "ps_do": "70" }, { "key_reference": 1 }, { "key_reference": 129 }, { "key_reference": 10 }, { "key_reference": 11 } ] } pySIM-shell (00:MF/DF.SYSTEM)> select EF.SIM_AUTH_KEY { "file_descriptor": { "file_descriptor_byte": { "shareable": true, "file_type": "working_ef", "structure": "transparent" }, "record_len": null, "num_of_rec": null }, "file_identifier": "6f20", "proprietary_information": { "unknown_ber_tlv_ie_d0": { "raw": "30" } }, "life_cycle_status_integer": "operational_activated", "security_attrib_compact": "1b1a1a1a1a", "file_size": 33, "short_file_identifier": null } pySIM-shell (00:MF/DF.SYSTEM/EF.SIM_AUTH_KEY)> read_binary 14aabbccddeeffaabbccddeeffaabbccdd12345678901234567890123456789012
-----------------------8<----------------------- Executing: https://jenkins.osmocom.org/jenkins/job/master-pysim/JOB_TYPE=test,a1=default,a3=default,a4=default,label=simtester/ws/pySim-shell.py -p 7 --script test_csv.script --noprompt --csv https://jenkins.osmocom.org/jenkins/job/master-pysim/JOB_TYPE=test,a1=default,a3=default,a4=default,label=simtester/ws/tests/pySim-shell_test/card_data.csv > pySim-shell_test_1.log 2>&1 pySim-shell logfile content: (pySim-shell_test_1.log) -----------------------8<----------------------- Using reader PCSC[HID Global OMNIKEY 3x21 Smart Card Reader [OMNIKEY 3x21 Smart Card Reader] 07 00] Waiting for card... Info: Card is of type: UICC Detected UICC Add-on "SIM" Detected UICC Add-on "GSM-R" Detected UICC Add-on "RUIM" AIDs on card: USIM: a0000000871002ffffffff8907090000 (EF.DIR) ISIM: a0000000871004ffffffff8907090000 (EF.DIR) ADF.ISD: a000000003000000 ARA-M: a00000015141434c00 Detected CardModel: SysmocomSJA5 debug - was: False now: True echo - was: False now: True pySIM-shell (00:MF)> pySIM-shell (00:MF)> # Verify ADM PIN pySIM-shell (00:MF)> verify_adm found ADM1 '34173960' for ICCID '8949440000001155314' pySIM-shell (00:MF)> pySIM-shell (00:MF)> # Perform an operation that requires ADM access pySIM-shell (00:MF)> select DF.SYSTEM { "file_descriptor": { "file_descriptor_byte": { "shareable": true, "file_type": "df", "structure": "no_info_given" }, "record_len": null, "num_of_rec": null }, "file_identifier": "a515", "proprietary_information": { "uicc_characteristics": "71", "available_memory": 353360, "supported_filesystem_commands": { "terminal_capability": true } }, "life_cycle_status_integer": "operational_activated", "security_attrib_compact": "00", "pin_status_template_do": [ { "ps_do": "70" }, { "key_reference": 1 }, { "key_reference": 129 }, { "key_reference": 10 }, { "key_reference": 11 } ] } pySIM-shell (00:MF/DF.SYSTEM)> select EF.SIM_AUTH_KEY { "file_descriptor": { "file_descriptor_byte": { "shareable": true, "file_type": "working_ef", "structure": "transparent" }, "record_len": null, "num_of_rec": null }, "file_identifier": "6f20", "proprietary_information": { "unknown_ber_tlv_ie_d0": { "raw": "30" } }, "life_cycle_status_integer": "operational_activated", "security_attrib_compact": "1b1a1a1a1a", "file_size": 33, "short_file_identifier": null } pySIM-shell (00:MF/DF.SYSTEM/EF.SIM_AUTH_KEY)> read_binary 14aabbccddeeffaabbccddeeffaabbccdd12345678901234567890123456789012
-----------------------8<----------------------- Template: using template test_direct.template to generate file test_direct.script Executing: https://jenkins.osmocom.org/jenkins/job/master-pysim/JOB_TYPE=test,a1=default,a3=default,a4=default,label=simtester/ws/pySim-shell.py -p 7 --script test_direct.script --noprompt > pySim-shell_test_2.log 2>&1 pySim-shell logfile content: (pySim-shell_test_2.log) -----------------------8<----------------------- Using reader PCSC[HID Global OMNIKEY 3x21 Smart Card Reader [OMNIKEY 3x21 Smart Card Reader] 07 00] Waiting for card... Info: Card is of type: UICC Detected UICC Add-on "SIM" Detected UICC Add-on "GSM-R" Detected UICC Add-on "RUIM" AIDs on card: USIM: a0000000871002ffffffff8907090000 (EF.DIR) ISIM: a0000000871004ffffffff8907090000 (EF.DIR) ADF.ISD: a000000003000000 ARA-M: a00000015141434c00 Detected CardModel: SysmocomSJA5 debug - was: False now: True { "file_descriptor": { "file_descriptor_byte": { "shareable": true, "file_type": "df", "structure": "no_info_given" }, "record_len": null, "num_of_rec": null }, "file_identifier": "a515", "proprietary_information": { "uicc_characteristics": "71", "available_memory": 353360, "supported_filesystem_commands": { "terminal_capability": true } }, "life_cycle_status_integer": "operational_activated", "security_attrib_compact": "00", "pin_status_template_do": [ { "ps_do": "70" }, { "key_reference": 1 }, { "key_reference": 129 }, { "key_reference": 10 }, { "key_reference": 11 } ] } { "file_descriptor": { "file_descriptor_byte": { "shareable": true, "file_type": "working_ef", "structure": "transparent" }, "record_len": null, "num_of_rec": null }, "file_identifier": "6f20", "proprietary_information": { "unknown_ber_tlv_ie_d0": { "raw": "30" } }, "life_cycle_status_integer": "operational_activated", "security_attrib_compact": "1b1a1a1a1a", "file_size": 33, "short_file_identifier": null } 14aabbccddeeffaabbccddeeffaabbccdd12345678901234567890123456789012
-----------------------8<----------------------- ---------------------------------------------------------------------- testcase execution done -- cleaning up ... ok
====================================================================== FAIL: test_put_delete_key (gp.test.test_case.test_put_delete_key) ---------------------------------------------------------------------- Traceback (most recent call last): File "https://jenkins.osmocom.org/jenkins/job/master-pysim/JOB_TYPE=test,a1=default,a3=default,a4=default,label=simtester/ws/tests/pySim-shell_test/gp/test.py", line 64, in test_put_delete_key self.runPySimShell(cardname, "test_put_delete_key.script", no_exceptions = True, add_csv = True) File "https://jenkins.osmocom.org/jenkins/job/master-pysim/JOB_TYPE=test,a1=default,a3=default,a4=default,label=simtester/ws/tests/pySim-shell_test/utils.py", line 292, in runPySimShell self.assertTrue(False, "Unexpected exceptions occurred!") AssertionError: False is not true : Unexpected exceptions occurred!
---------------------------------------------------------------------- Ran 35 tests in 499.704s
FAILED (failures=1) Build step 'Execute shell' marked build as failure $ ssh-agent -k unset SSH_AUTH_SOCK; unset SSH_AGENT_PID; echo Agent pid 1647499 killed; [ssh-agent] Stopped. Archiving artifacts
jenkins-notifications@lists.osmocom.org