tests: sanitize all cards before running tests

Even though our tests are written in a way that they shouldn't interfere
with each other, it may happen that one testrun writes content to a file
that upsets a different testrun. The resulting problems are often
difficult to diagnose.

To minimize the problem, let's add code that can reset the cards to a
defined state. This can be done using pySim-shell's export
feature. We can generate a backup from a known good state and then play
back the backup to reset files that have been changed. Files that didn't
change will not be written thanks to the conserve_write feature of
pySim-shell.

Related: OS#4384
Change-Id: I42eaf61280968518164f2280245136fd30a603ce
This commit is contained in:
Philipp Maier
2024-09-23 11:18:01 +02:00
committed by laforge
parent 93c89856c8
commit 7429bc0ca0
9 changed files with 18132 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
iccid,adm1,name
8988219000000117833,CAE743DB9C5B5A58,Fairwaves-SIM
8988211000000467343,67225880,sysmoISIM-SJA2
8988211320300000028,55538407,sysmoUSIM-SJS1
89445310150011013678,15E31383624FDC8A,Wavemobile-SIM
8949440000001155314,34173960,sysmoISIM-SJA5-S17
2222334455667788990,DDDDDDDD,sysmosim-gr1
1 iccid adm1 name
2 8988219000000117833 CAE743DB9C5B5A58 Fairwaves-SIM
3 8988211000000467343 67225880 sysmoISIM-SJA2
4 8988211320300000028 55538407 sysmoUSIM-SJS1
5 89445310150011013678 15E31383624FDC8A Wavemobile-SIM
6 8949440000001155314 34173960 sysmoISIM-SJA5-S17
7 2222334455667788990 DDDDDDDD sysmosim-gr1