See
<https://jenkins.osmocom.org/jenkins/job/master-pyosmocom/JOB_TYPE=test,a2=default,a3=default,a4=default,label=osmocom-master/15/display/redirect?page=changes>
Changes:
[laforge] Introduce a new 'hexstr' type to represent hex-strings
------------------------------------------
[...truncated 4.40 KiB...]
+ [ = cygwin ]
+ [ = msys ]
+ export VIRTUAL_ENV
+ _OLD_VIRTUAL_PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ PATH=/build/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ export PATH
+ [ -z ]
+ [ -z ]
+ _OLD_VIRTUAL_PS1=$
+ [ x != x ]
+ basename /build/venv
+ PS1=(venv) $
+ export PS1
+ alias pydoc
+ true
+ hash -r
+ pip install -r requirements.txt
Requirement already satisfied: gsm0338 in /usr/local/lib/python3.11/dist-packages (from -r
requirements.txt (line 1)) (1.0.0)
Requirement already satisfied: construct>=2.9.51 in
/usr/local/lib/python3.11/dist-packages (from -r requirements.txt (line 2)) (2.10.70)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from gsm0338->-r
requirements.txt (line 1)) (1.16.0)
+ python -m unittest discover -v -s tests/
test_dns_adapter (test_construct.TestAdapters.test_dns_adapter) ... ok
test_GreedyInt_decoder (test_construct.TestGreedyInt.test_GreedyInt_decoder) ... ok
test_GreedyInt_encoder (test_construct.TestGreedyInt.test_GreedyInt_encoder) ... ok
test_examples (test_construct.TestTrailerAdapter.test_examples) ... ok
test_data_decode (test_construct.TestUcs2Adapter.test_data_decode) ... ok
test_data_encode (test_construct.TestUcs2Adapter.test_data_encode) ... ok
test_example1_decode (test_construct.TestUcs2Adapter.test_example1_decode) ... ok
test_example2_decode (test_construct.TestUcs2Adapter.test_example2_decode) ... ok
test_example3_decode (test_construct.TestUcs2Adapter.test_example3_decode) ... ok
test_filter_dict (test_construct.TestUtils.test_filter_dict) ... ok
test_filter_dict_nested (test_construct.TestUtils.test_filter_dict_nested) ... ok
test_gsup_encdec (test_gsup.Test_GSUP.test_gsup_encdec) ... {'ies':
[{'imsi': '001010000000001'}], 'msg_type':
'SEND_AUTH_INFO_REQUEST'}
{'ies': [{'imsi': '262420000000001'},
{'supported_rat_types': 'eutran'},
{'current_rat_type': ['eutran']}],
'msg_type': 'SEND_AUTH_INFO_REQUEST'}
{'ies': [{'imsi': '262424109415945'},
{'pdp_info': [{'pdp_context_id': 0},
{'pdp_address': {'address': None,
'hdr': {'pdp_type_nr':
'ipv4',
'pdp_type_org':
'ietf'}}},
{'access_point_name': 'internet'}]},
{'auts': b'\x95\xf3q\xa6\xb4q\xf2"\xd6^\xab\xd2]\xec'},
{'rand':
b'\xa8\xa4\xf1\x19\x88\x105\xf3\xbe+r\xe2\xa0\x9a\xea\x99'}],
'msg_type': 'SEND_AUTH_INFO_REQUEST'}
{'ies': [{'imsi': '001010000000001'},
{'auth_tuple': [{'rand': b'
\x08\x0c8\x18\x18;R&\x14\x16,\x07`\x1d\r'},
{'sres': b'\xe9\x1eGw'},
{'kc': b';\x0f\x99\x9eB\x19\x88t'},
{'ik': b'\x112\x9a\xae\x8e\x8d)A\xbb"k
a\x13|X'},
{'ck': b't\rb\xdf\x98\x03\xee\xbd\xe5\x12\n\xcf'
b'5\x843\xd0'},
{'autn':
b'\xf1\x1b\x89\xa2\xa8\xbe\x00\x00\x1f\x9cRo'
b'=u\xd4L'},
{'res': b'j\x91\x97\x0e\x83\x8f\xd0y'}]},
{'auth_tuple': [{'rand': b'
\x08\x0c8\x18\x18;R&\x14\x16,\x07`\x1d\r'},
{'sres': b'\xe9\x1eGw'},
{'kc': b';\x0f\x99\x9eB\x19\x88t'},
{'ik': b'\x112\x9a\xae\x8e\x8d)A\xbb"k
a\x13|X'},
{'ck': b't\rb\xdf\x98\x03\xee\xbd\xe5\x12\n\xcf'
b'5\x843\xd0'},
{'autn': b'\xf1\x1b\x89\xa2\xa8\xbf\x00\x00'
b'\xbc\xbf\xa2?\x04\x96\xac\xc0'},
{'res': b'j\x91\x97\x0e\x83\x8f\xd0y'}]},
{'auth_tuple': [{'rand': b'
\x08\x0c8\x18\x18;R&\x14\x16,\x07`\x1d\r'},
{'sres': b'\xe9\x1eGw'},
{'kc': b';\x0f\x99\x9eB\x19\x88t'},
{'ik': b'\x112\x9a\xae\x8e\x8d)A\xbb"k
a\x13|X'},
{'ck': b't\rb\xdf\x98\x03\xee\xbd\xe5\x12\n\xcf'
b'5\x843\xd0'},
{'autn':
b'\xf1\x1b\x89\xa2\xa8\xbc\x00\x00\x9c\xe3fg'
b'\xcb\x8d\xe7\xb7'},
{'res': b'j\x91\x97\x0e\x83\x8f\xd0y'}]},
{'auth_tuple': [{'rand': b'
\x08\x0c8\x18\x18;R&\x14\x16,\x07`\x1d\r'},
{'sres': b'\xe9\x1eGw'},
{'kc': b';\x0f\x99\x9eB\x19\x88t'},
{'ik': b'\x112\x9a\xae\x8e\x8d)A\xbb"k
a\x13|X'},
{'ck': b't\rb\xdf\x98\x03\xee\xbd\xe5\x12\n\xcf'
b'5\x843\xd0'},
{'autn':
b'\xf1\x1b\x89\xa2\xa8\xbd\x00\x00vG\xa2%'
b'U\x94T\xbf'},
{'res': b'j\x91\x97\x0e\x83\x8f\xd0y'}]},
{'auth_tuple': [{'rand': b'
\x08\x0c8\x18\x18;R&\x14\x16,\x07`\x1d\r'},
{'sres': b'\xe9\x1eGw'},
{'kc': b';\x0f\x99\x9eB\x19\x88t'},
{'ik': b'\x112\x9a\xae\x8e\x8d)A\xbb"k
a\x13|X'},
{'ck': b't\rb\xdf\x98\x03\xee\xbd\xe5\x12\n\xcf'
b'5\x843\xd0'},
{'autn':
b'\xf1\x1b\x89\xa2\xa8\xba\x00\x00\\\xa77\xb9'
b'\xb6n\x8f\x92'},
{'res': b'j\x91\x97\x0e\x83\x8f\xd0y'}]}],
'msg_type': 'SEND_AUTH_INFO_RESULT'}
{'ies': [{'imsi': '262011130157142'}, {'cause': 2}],
'msg_type': 'SEND_AUTH_INFO_ERROR'}
{'ies': [{'imsi': '001010000000001'}, {'cn_domain':
'ps'}],
'msg_type': 'UPDATE_LOCATION_REQUEST'}
{'ies': [{'imsi': '001010000000001'},
{'msisdn': {'digits': '99001',
'ton_npi': {'ext': False,
'numbering_plan_id': 'data_x121',
'type_of_number': 'unknown'}}},
{'pdp_info': [{'pdp_context_id': 1},
{'access_point_name': '*'}]},
{'cn_domain': 'ps'}],
'msg_type': 'INSERT_DATA_REQUEST'}
{'ies': [{'imsi': '901700000014705'},
{'msisdn': {'digits': '1001',
'ton_npi': {'ext': False,
'numbering_plan_id': 2,
'type_of_number': 'unknown'}}},
{'cn_domain': 'cs'}],
'msg_type': 'INSERT_DATA_REQUEST'}
{'ies': [{'imsi': '001010000000001'}], 'msg_type':
'INSERT_DATA_RESULT'}
{'ies': [{'imsi': '901700000014705'},
{'imei': '80359877062850860'},
{'message_class': 'subscriber_management'}],
'msg_type': 'CHECK_IMEI_REQUEST'}
{'ies': [{'imsi': '901700000014705'},
{'imei_check_result': 'ack'}],
'msg_type': 'CHECK_IMEI_RESULT'}
{'ies': [{'imsi': '001010000000001'}], 'msg_type':
'UPDATE_LOCATION_RESULT'}
{'ies': [{'imsi': '901711597836588'},
{'session_id': 536870913},
{'session_state': 'begin'},
{'supplementary_service_info': b'\xa1\x13\x02\x01\x05\x02\x01;'
b'0\x0b\x04\x01\x0f\x04\x06\xaa'
b'Q\x0c\x06\x1b\x01'}],
'msg_type': 'PROC_SS_REQUEST'}
{'ies': [{'imsi': '901700000014705'},
{'message_class': 'inter_msc'},
{'source_name': 'msc-262-42-0'},
{'destination_name': 'msc-901-70-0'}],
'msg_type': 'E_CLOSE'}
{'ies': [{'imsi': '262424109415945'}, {'cn_domain':
'ps'}],
'msg_type': 'PURGE_MS_REQUEST'}
{'ies': [{'imsi': '262424109415945'}, {'freeze_ptmsi':
None}],
'msg_type': 'PURGE_MS_RESULT'}
{'ies': [{'imsi': '262424109415945'},
{'cn_domain': 'ps'},
{'pco': b'\x80\x00\r\x00\x00\x0c\x00'},
{'message_class': 'ipsec_epdg'}],
'msg_type': 'EPDG_TUNNEL_REQUEST'}
{'ies': [{'imsi': '262424109415945'},
{'pdp_info_compl': None},
{'pdp_info': [{'pdp_context_id': 0},
{'pdp_address': {'address': '192.168.0.2',
'hdr': {'pdp_type_nr':
'ipv4',
'pdp_type_org':
'ietf'}}},
{'access_point_name': 'internet'},
{'qos': b'\x00\x00\x00'},
{'pdp_charging_characteristics': {'behaviour': 0,
'profile_index': 0}}]},
{'message_class': 'ipsec_epdg'},
{'pco': b'\x80\x00\r\x04\x01\x02\x03\x04\x00\x0c\x04\x05'
b'\x06\x07\x08'}],
'msg_type': 'EPDG_TUNNEL_RESULT'}
ok
test_BerTlvLenDec (test_tlv.TestBerTlv.test_BerTlvLenDec) ... ok
test_BerTlvLenEnc (test_tlv.TestBerTlv.test_BerTlvLenEnc) ... ok
test_BerTlvParseOne (test_tlv.TestBerTlv.test_BerTlvParseOne) ... ok
test_BerTlvTagDec (test_tlv.TestBerTlv.test_BerTlvTagDec) ... ok
test_ATR (test_tlv.TestCompact.test_ATR) ... ok
test_ComprTlvTagDec (test_tlv.TestComprTlv.test_ComprTlvTagDec) ... ok
test_ComprTlvTagEnc (test_tlv.TestComprTlv.test_ComprTlvTagEnc) ... ok
testDgiTlvLenDec (test_tlv.TestDgiTlv.testDgiTlvLenDec) ... ok
test_DgiTlvLenEnc (test_tlv.TestDgiTlv.test_DgiTlvLenEnc) ... ok
test_IE_empty (test_tlv.TestIE.test_IE_empty) ... ok
test_IE_from_bytes (test_tlv.TestIE.test_IE_from_bytes) ... ok
test_XC_constr_class (test_tlv.TestTranscodable.test_XC_constr_class)
Transcodable derived class with _construct class variable ... ok
test_XC_constr_instance (test_tlv.TestTranscodable.test_XC_constr_instance)
Transcodable derived class with _construct instance variable ... ok
test_XC_method_instance (test_tlv.TestTranscodable.test_XC_method_instance)
Transcodable derived class with _{from,to}_bytes() methods ... ok
test_camel_to_snake (test_tlv.TestUtils.test_camel_to_snake) ... ok
test_flatten_dict_lists (test_tlv.TestUtils.test_flatten_dict_lists) ... ok
test_flatten_dict_lists_nested (test_tlv.TestUtils.test_flatten_dict_lists_nested) ... ok
test_flatten_dict_lists_nodict (test_tlv.TestUtils.test_flatten_dict_lists_nodict) ... ok
test_cmp (test_utils.TestHexstr.test_cmp) ... ERROR
test_frombytes (test_utils.TestHexstr.test_frombytes) ... ERROR
test_slice (test_utils.TestHexstr.test_slice) ... ERROR
test_str_lower (test_utils.TestHexstr.test_str_lower) ... ERROR
test_tobytes (test_utils.TestHexstr.test_tobytes) ... ERROR
test_tobytes_odd (test_utils.TestHexstr.test_tobytes_odd) ... ERROR
======================================================================
ERROR: test_cmp (test_utils.TestHexstr.test_cmp)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/tests/test_utils.py", line 25, in test_cmp
s = hexstr('aBcD')
^^^^^^
NameError: name 'hexstr' is not defined
======================================================================
ERROR: test_frombytes (test_utils.TestHexstr.test_frombytes)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/tests/test_utils.py", line 41, in test_frombytes
s = hexstr.from_bytes(b'\x01\x02\xaa')
^^^^^^
NameError: name 'hexstr' is not defined
======================================================================
ERROR: test_slice (test_utils.TestHexstr.test_slice)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/tests/test_utils.py", line 45, in test_slice
s = hexstr('abcdef')
^^^^^^
NameError: name 'hexstr' is not defined
======================================================================
ERROR: test_str_lower (test_utils.TestHexstr.test_str_lower)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/tests/test_utils.py", line 54, in test_str_lower
self.assertEqual(str(hexstr('ABCD')), 'abcd')
^^^^^^
NameError: name 'hexstr' is not defined
======================================================================
ERROR: test_tobytes (test_utils.TestHexstr.test_tobytes)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/tests/test_utils.py", line 32, in test_tobytes
s = hexstr('aBcDeF')
^^^^^^
NameError: name 'hexstr' is not defined
======================================================================
ERROR: test_tobytes_odd (test_utils.TestHexstr.test_tobytes_odd)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/tests/test_utils.py", line 36, in test_tobytes_odd
s2 = hexstr('aBc')
^^^^^^
NameError: name 'hexstr' is not defined
----------------------------------------------------------------------
Ran 36 tests in 0.014s
FAILED (errors=6)
Build step 'Execute shell' marked build as failure
$ ssh-agent -k
unset SSH_AUTH_SOCK;
unset SSH_AGENT_PID;
echo Agent pid 3929164 killed;
[ssh-agent] Stopped.
Archiving artifacts