Skip to content
Success

Changes

Summary

  1. tests: sanitize all cards before running tests (details)
Commit b52b9704ed57386959a73c98e946c756e0188e6c by pmaier@sysmocom.de
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 reset the cards to a defined state before
running the actual tests. 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
The file was addedtests/card_sanitizer/card_data.csv
The file was addedtests/card_sanitizer/card_backup_3b9f95801fc78031e073f62113674d4516004301008f_89445310150011013678.script
The file was addedtests/card_sanitizer/card_backup_3b9f96801f878031e073fe211b674a4c753034054ba9_8988211000000467343.script
The file was addedtests/card_sanitizer/card_backup_3b9f96801fc78031a073be21136744220610000001a9_8988219000000117833.script
The file was addedtests/card_sanitizer/card_backup_3b9a940092027593110001020221_1122334455667788990.script
The file was addedtests/card_sanitizer/card_backup_3b9f96801f878031e073fe211b674a357530350265f8_8949440000001155314.script
The file was addedtests/card_sanitizer/card_backup_3b991800118822334455667760_2222334455667788990.script
The file was modifiedcontrib/jenkins.sh
The file was addedtests/card_sanitizer/card_sanitizer.py
The file was addedtests/card_sanitizer/card_backup_3b9f96801fc78031a073be21136743200718000001a5_8988211320300000028.script