diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2022-08-23 16:54:56 +0200 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2022-08-25 15:41:12 +0200 |
commit | 9318dc4c1801c2aabfd2761755bcd53796d5ee0e (patch) | |
tree | 499084e1786bb79615307bc416297355364aaaa6 /tools | |
parent | 4fc08f55372f73552968c521c295a1441a81df7b (diff) | |
download | hardware_replicant_libsamsung-ipc-9318dc4c1801c2aabfd2761755bcd53796d5ee0e.tar.gz hardware_replicant_libsamsung-ipc-9318dc4c1801c2aabfd2761755bcd53796d5ee0e.tar.bz2 hardware_replicant_libsamsung-ipc-9318dc4c1801c2aabfd2761755bcd53796d5ee0e.zip |
tests: nv_data-imei: cleanup after creating file
Without that fix, the file being created isn't deleted at the end of
the test, so over time the leftover files accumulate in /tmp.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/tests/nv_data-imei.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/tests/nv_data-imei.py b/tools/tests/nv_data-imei.py index 79dddc8..1dbebb7 100755 --- a/tools/tests/nv_data-imei.py +++ b/tools/tests/nv_data-imei.py @@ -130,6 +130,10 @@ class NvDataImei(object): else: raise Exception() + os.unlink(inaccessible_nv_data_bin) + os.unlink(nv_data_bin) + os.unlink(nv_data_bin + '.md5') + def main(): nv_data_imei = NvDataImei() nv_data_imei.test_help() |