Skip to content

Changes

Started 1 day 19 hr ago
Queued 25 min
Took 17 min on built-in

Summary

  1. pySim/euicc: fix encoding/decoding of Iccid (details)
Commit e80f3160a939192284d81650ca4431a8f70207d2 by pmaier@sysmocom.de
pySim/euicc: fix encoding/decoding of Iccid

The class Iccid uses a BcdAdapter to encoded/decode the ICCID. This
works fine for ICCIDs that have an even (20) number of digits. In case
the digit count is odd (19), the ICCID the last digit requires padding.

Let's switch to PaddedBcdAdapter for encoding/decoding, to ensure that
odd-length ICCIDs are padded automatically.

Change-Id: I527a44ba454656a0d682ceb590eec6d9d0ac883a
Related: OS#6868
The file was modifiedtests/pySim-shell_test/euicc/test_gen_notif.script
The file was modifiedtests/pySim-shell_test/euicc/get_profiles_info.ok
The file was modifiedpySim/euicc.py
The file was modifiedtests/pySim-shell_test/euicc/test.py