From f800d77200643082ee7b76a5eb10d7871a5e63f9 Mon Sep 17 00:00:00 2001 From: Guillaume Raffy Date: Tue, 13 Aug 2024 17:37:40 +0200 Subject: [PATCH] improved test_tmpfs to delete the stresser file if it alraeady exists when launching the test --- src/test_tmpfs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test_tmpfs.py b/src/test_tmpfs.py index 1749168..9961c20 100755 --- a/src/test_tmpfs.py +++ b/src/test_tmpfs.py @@ -17,6 +17,8 @@ def measure_tmpfs_impact(file_size_in_mib: int): '''measures the effect of tmpfs file on meminfo variables ''' stresser_file_path = Path('/dev/shm/tmpfs-stresser.bin') + if stresser_file_path.exists(): + stresser_file_path.unlink() ramana_out_root = Path('./ramana-out') ramana_out_root.mkdir(exist_ok=True)