See
<https://jenkins.osmocom.org/jenkins/job/master-pysim/JOB_TYPE=test,a1=default,a3=default,a4=default,label=simtester/792/display/redirect?page=changes>
Changes:
[laforge] cards.py: Fix type annotation
[laforge] pySim-shell: Create/delete RuntimeLchan objects on open/close of channel
[laforge] RuntimeState: Add type annotation for 'card' argument
------------------------------------------
[...truncated 1.87 KB...]
git --version # timeout=10
git --version # 'git version 2.30.2'
git fetch --tags --force --progress --
https://gerrit.osmocom.org/pysim
+refs/heads/*:refs/remotes/origin/* # timeout=10
Checking out Revision
49acc06327b5462674ab05c65d7b42980dc0aedd (origin/master)
git config core.sparsecheckout # timeout=10
git checkout -f 49acc06327b5462674ab05c65d7b42980dc0aedd # timeout=10
Commit
message: "RuntimeState: Add type annotation for 'card' argument"
git rev-list --no-walk
7c0cd0a93b87e1ee52ce6bccdb3a2a7ff3ee7be0 # timeout=10
[simtester] $ /bin/sh -xe
/tmp/jenkins15725182923155086136.sh
+ /usr/bin/timeout 30m ./contrib/jenkins.sh
+ export PYTHONUNBUFFERED=1
+ [ ! -d ./pysim-testdata/ ]
+ virtualenv -p python3 venv --system-site-packages
created virtual environment CPython3.9.2.final.0-64 in 1151ms
creator
CPython3Posix(dest=<https://jenkins.osmocom.org/jenkins/job/master-pysim…
clear=False, no_vcs_ignore=False, global=True)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle,
via=copy, app_data_dir=/home/jenkins/.local/share/virtualenv)
added seed packages: pip==20.3.4, pkg_resources==0.0.0, pyshark==0.6,
setuptools==44.1.1, wheel==0.34.2
activators
BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
+ . venv/bin/activate
+ [ = ./contrib/jenkins.sh ]
+ deactivate nondestructive
+ unset -f pydoc
+ [ -z ]
+ [ -z ]
+ [ -n ]
+ [ -n ]
+ [ -z ]
+ unset VIRTUAL_ENV
+ [ ! nondestructive = nondestructive ]
+
VIRTUAL_ENV=<https://jenkins.osmocom.org/jenkins/job/master-pysim/JOB_TY…
+ [ = cygwin ]
+ [ = msys ]
+ export VIRTUAL_ENV
+ _OLD_VIRTUAL_PATH=/usr/local/bin:/usr/bin:/bin:/usr/games:/home/jenkins/bin
+
PATH=<https://jenkins.osmocom.org/jenkins/job/master-pysim/JOB_TYPE=test…
+ export PATH
+ [ -z ]
+ [ -z ]
+ _OLD_VIRTUAL_PS1=$
+ [ x != x ]
+ basename
<https://jenkins.osmocom.org/jenkins/job/master-pysim/JOB_TYPE=test,a1=default,a3=default,a4=default,label=simtester/ws/venv>
+ PS1=(venv) $
+ export PS1
+ alias pydoc
+ true
+ [ -n ]
+ [ -n ]
+ pip install -r requirements.txt
Collecting
git+https://github.com/hologram-io/smpp.pdu (from -r requirements.txt (line
14))
Cloning
https://github.com/hologram-io/smpp.pdu to /tmp/pip-req-build-5_ogqzc8
Running command git clone -q
https://github.com/hologram-io/smpp.pdu
/tmp/pip-req-build-5_ogqzc8
Requirement already satisfied: pyscard in /usr/lib/python3/dist-packages (from -r
requirements.txt (line 1)) (2.0.0)
Requirement already satisfied: pyserial in /usr/lib/python3/dist-packages (from -r
requirements.txt (line 2)) (3.5b0)
Requirement already satisfied: pytlv in /usr/local/lib/python3.9/dist-packages (from -r
requirements.txt (line 3)) (0.71)
Requirement already satisfied: cmd2>=1.5 in /usr/local/lib/python3.9/dist-packages
(from -r requirements.txt (line 4)) (2.4.3)
Requirement already satisfied: jsonpath-ng in /usr/local/lib/python3.9/dist-packages (from
-r requirements.txt (line 5)) (1.5.3)
Requirement already satisfied: construct>=2.9.51 in
/usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 6)) (2.10.68)
Requirement already satisfied: bidict in /usr/local/lib/python3.9/dist-packages (from -r
requirements.txt (line 7)) (0.22.1)
Requirement already satisfied: gsm0338 in /usr/local/lib/python3.9/dist-packages (from -r
requirements.txt (line 8)) (1.0.0)
Requirement already satisfied: pyyaml>=5.1 in /usr/local/lib/python3.9/dist-packages
(from -r requirements.txt (line 9)) (6.0.1)
Requirement already satisfied: termcolor in /usr/local/lib/python3.9/dist-packages (from
-r requirements.txt (line 10)) (2.3.0)
Requirement already satisfied: colorlog in /usr/local/lib/python3.9/dist-packages (from -r
requirements.txt (line 11)) (6.7.0)
Requirement already satisfied: pycryptodomex in /usr/local/lib/python3.9/dist-packages
(from -r requirements.txt (line 12)) (3.18.0)
Requirement already satisfied: packaging in /usr/local/lib/python3.9/dist-packages (from
-r requirements.txt (line 13)) (23.1)
Requirement already satisfied: pyperclip>=1.6 in /usr/local/lib/python3.9/dist-packages
(from cmd2>=1.5->-r requirements.txt (line 4)) (1.8.2)
Requirement already satisfied: wcwidth>=0.1.7 in /usr/local/lib/python3.9/dist-packages
(from cmd2>=1.5->-r requirements.txt (line 4)) (0.2.6)
Requirement already satisfied: attrs>=16.3.0 in /usr/local/lib/python3.9/dist-packages
(from cmd2>=1.5->-r requirements.txt (line 4)) (23.1.0)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from gsm0338->-r
requirements.txt (line 8)) (1.16.0)
Requirement already satisfied: decorator in /usr/local/lib/python3.9/dist-packages (from
jsonpath-ng->-r requirements.txt (line 5)) (5.1.1)
Requirement already satisfied: ply in /usr/local/lib/python3.9/dist-packages (from
jsonpath-ng->-r requirements.txt (line 5)) (3.11)
+ pip install pyshark
Requirement already satisfied: pyshark in ./venv/lib/python3.9/site-packages (0.6)
Requirement already satisfied: appdirs in /usr/lib/python3/dist-packages (from pyshark)
(1.4.4)
Requirement already satisfied: termcolor in /usr/local/lib/python3.9/dist-packages (from
pyshark) (2.3.0)
Requirement already satisfied: lxml in /usr/lib/python3/dist-packages (from pyshark)
(4.6.3)
Requirement already satisfied: packaging in /usr/local/lib/python3.9/dist-packages (from
pyshark) (23.1)
+ python -m unittest discover -v -s tests/
test_successful (test_apdu.TestApdu) ... ok
test_successful_method (test_apdu.TestApdu)
Test overloading of the success property with a custom method. ... ok
test_2g (test_apdu.TestUsimAuth) ... ok
test_3g (test_apdu.TestUsimAuth) ... ok
test_3g_sync (test_apdu.TestUsimAuth) ... ok
test_vgcs (test_apdu.TestUsimAuth) ... ok
test_GreedyInt_decoder (test_construct.TestGreedyInt) ... ok
test_GreedyInt_encoder (test_construct.TestGreedyInt) ... ok
test_filter_dict (test_construct.TestUtils) ... ok
test_filter_dict_nested (test_construct.TestUtils) ... ok
test_de_encode_record (test_files.LinFixed_Test)
Test the decoder and encoder for a linear-fixed EF. Performs first a decoder ... ok
test_decode_record (test_files.LinFixed_Test)
Test the decoder for a linear-fixed EF. Requires the given LinFixedEF subclass ... ok
test_encode_record (test_files.LinFixed_Test)
Test the encoder for a linear-fixed EF. Requires the given LinFixedEF subclass ... ok
test_de_encode_record (test_files.TransRecEF_Test)
Test the decoder and encoder for a transparent record-oriented EF. Performs first a
decoder ... ok
test_decode_record (test_files.TransRecEF_Test)
Test the decoder for a transparent record-oriented EF. Requires the given TransRecEF
subclass ... ok
test_encode_record (test_files.TransRecEF_Test)
Test the encoder for a transparent record-oriented EF. Requires the given TransRecEF
subclass ... ok
test_de_encode_file (test_files.TransparentEF_Test)
Test the decoder and encoder for a transparent EF. Performs first a decoder ... ok
test_decode_file (test_files.TransparentEF_Test)
Test the decoder for a transparent EF. Requires the given TransparentEF subclass ... ok
test_encode_file (test_files.TransparentEF_Test)
Test the encoder for a transparent EF. Requires the given TransparentEF subclass ... ok
test_decode_resp (test_ota.SmsOtaTestCase) ... ok
test_encode_cmd (test_ota.SmsOtaTestCase) ... ok
test_cmd_3des_ciphered (test_ota.Test_SMS_3DES) ... ok
test_cmd_3des_none (test_ota.Test_SMS_3DES) ... ok
test_cmd_3des_signed (test_ota.Test_SMS_3DES) ... ok
test_resp_3des_ciphered (test_ota.Test_SMS_3DES) ... ok
test_resp_3des_none (test_ota.Test_SMS_3DES) ... ok
test_resp_3des_signed (test_ota.Test_SMS_3DES) ... ok
test_resp_3des_signed_err (test_ota.Test_SMS_3DES)
Expect an OtaCheckError exception if the computed CC != received CC ... ok
test_cmd_aes128_ciphered (test_ota.Test_SMS_AES128) ... ok
test_resp_aes128_ciphered (test_ota.Test_SMS_AES128) ... ok
test_fromBytes (test_sms.Test_AddressField) ... ok
test_fromBytes_odd (test_sms.Test_AddressField) ... ok
test_toBytes (test_sms.Test_AddressField) ... ok
test_toBytes_odd (test_sms.Test_AddressField) ... ok
test_fromBytes (test_sms.Test_DELIVER) ... ok
test_single_ie (test_sms.Test_SMS_UDH) ... ok
test_single_ie_tail (test_sms.Test_SMS_UDH) ... ok
test_single_ie_value (test_sms.Test_SMS_UDH) ... ok
test_toBytes (test_sms.Test_SMS_UDH) ... ok
test_two_ie_data_tail (test_sms.Test_SMS_UDH) ... ok
test_fromBytes (test_sms.Test_SUBMIT) ... ok
test_IE_empty (test_tlv.TestIE) ... ok
test_IE_from_bytes (test_tlv.TestIE) ... ok
test_XC_constr_class (test_tlv.TestTranscodable)
Transcodable derived class with _construct class variable ... ok
test_XC_constr_instance (test_tlv.TestTranscodable)
Transcodable derived class with _construct instance variable ... ok
test_XC_method_instance (test_tlv.TestTranscodable)
Transcodable derived class with _{from,to}_bytes() methods ... ok
test_camel_to_snake (test_tlv.TestUtils) ... ok
test_flatten_dict_lists (test_tlv.TestUtils) ... ok
test_flatten_dict_lists_nested (test_tlv.TestUtils) ... ok
test_flatten_dict_lists_nodict (test_tlv.TestUtils) ... ok
testDecAct_allSet (test_utils.DecTestCase) ... ok
testDecAct_noneSet (test_utils.DecTestCase) ... ok
testDecAct_onlyCdma20001xRTT (test_utils.DecTestCase) ... ok
testDecAct_onlyCdma2000HRPD (test_utils.DecTestCase) ... ok
testDecAct_onlyEUtran (test_utils.DecTestCase) ... ok
testDecAct_onlyGsm (test_utils.DecTestCase) ... ok
testDecAct_onlyGsmCompact (test_utils.DecTestCase) ... ok
testDecAct_onlyNgRan (test_utils.DecTestCase) ... ok
testDecAct_onlyUtran (test_utils.DecTestCase) ... ok
testDecMCCfromPLMN (test_utils.DecTestCase) ... ok
testDecMCCfromPLMN_str (test_utils.DecTestCase) ... ok
testDecMCCfromPLMN_unused (test_utils.DecTestCase) ... ok
testDecMCCfromPLMN_unused_str (test_utils.DecTestCase) ... ok
testDecMNCfromPLMN_threeDigitMNC (test_utils.DecTestCase) ... ok
testDecMNCfromPLMN_threeDigitMNC_str (test_utils.DecTestCase) ... ok
testDecMNCfromPLMN_twoDigitMNC (test_utils.DecTestCase) ... ok
testDecMNCfromPLMN_twoDigitMNC_str (test_utils.DecTestCase) ... ok
testDecMNCfromPLMN_unused (test_utils.DecTestCase) ... ok
testDecMNCfromPLMN_unused_str (test_utils.DecTestCase) ... ok
testDec_msisdn (test_utils.DecTestCase) ... ok
testDecodeSuciCalcInfo (test_utils.DecTestCase) ... ok
testDecxPlmn_w_act (test_utils.DecTestCase) ... ok
testEnc_msisdn (test_utils.DecTestCase) ... ok
testEncodeSuciCalcInfo (test_utils.DecTestCase) ... ok
testFormatxPlmn_w_act (test_utils.DecTestCase) ... ok
testSplitHexStringToListOf5ByteEntries (test_utils.DecTestCase) ... ok
test_enc_plmn (test_utils.DecTestCase) ... ok
testSeqOfChoices (test_utils.DoTestCase)
A sequence of two choices with each a variety of DO/TLVs ... ok
test_BerTlvLenDec (test_utils.TestBerTlv) ... ok
test_BerTlvLenEnc (test_utils.TestBerTlv) ... ok
test_BerTlvParseOne (test_utils.TestBerTlv) ... ok
test_BerTlvTagDec (test_utils.TestBerTlv) ... ok
test_ComprTlvTagDec (test_utils.TestComprTlv) ... ok
test_ComprTlvTagEnc (test_utils.TestComprTlv) ... ok
----------------------------------------------------------------------
Ran 84 tests in 0.557s
OK
+ cd pysim-testdata
+ ../tests/pySim-prog_test.sh
pySim-prog_test - a test program to test pySim-prog.py
======================================================
Expecting to see the following cards:
Fairwaves-SIM
fakemagicsim
sysmoISIM-SJA2
sysmosim-gr1
sysmoUSIM-SJS1
Wavemobile-SIM
Number of card terminals installed: 6
== EXECUTING TEST ==
Probing card in terminal #0
Card is of type: sysmosim-gr1
Using PC/SC reader interface
Ready for Programming: Insert card now (or CTRL-C to cancel)
Generated card parameters :
Name : Magic
SMSP : e1ffffffffffffffffffffffff0581005155f5ffffffffffff000000
ICCID : 1122334455667788990
MCC/MNC : 001/01
IMSI : 001010000000102
Ki : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
OPC : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
ACC : None
ADM1(hex): 4444444444444444
OPMODE : None
Programming ...
Programming successful: Remove card from reader
Verifying card ...
Card contents match the test data -- success!
== EXECUTING TEST ==
Probing card in terminal #1
Card is of type: Fairwaves-SIM
Using PC/SC reader interface
Ready for Programming: Insert card now (or CTRL-C to cancel)
Generated card parameters :
Name : Magic
SMSP : e1ffffffffffffffffffffffff0581005155f5ffffffffffff000000
ICCID : 1122334455667788990
MCC/MNC : 001/01
IMSI : 001010000000111
Ki : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
OPC : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
ACC : None
ADM1(hex): CAE743DB9C5B5A58
OPMODE : None
Programming ...
Programming successful: Remove card from reader
Verifying card ...
Card contents match the test data -- success!
== EXECUTING TEST ==
Probing card in terminal #2
Card is of type: Insert card now (or CTRL-C to cancel)
../tests/pySim-prog_test.sh: line 165: Insert card now (or CTRL-C to cancel).data: No such
file or directory
Build step 'Execute shell' marked build as failure
$ ssh-agent -k
unset SSH_AUTH_SOCK;
unset SSH_AGENT_PID;
echo Agent pid 969190 killed;
[ssh-agent] Stopped.
Archiving artifacts