From b7e7cd423da855d2ad9a5e8cdbadf50b11bec192 Mon Sep 17 00:00:00 2001 From: Alexander Sosedkin Date: Sat, 6 Jul 2024 19:06:32 +0200 Subject: [PATCH] tests/emulator: better filenames --- tests/emulator/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/emulator/common.py b/tests/emulator/common.py index 52f9451..5f639a6 100644 --- a/tests/emulator/common.py +++ b/tests/emulator/common.py @@ -10,7 +10,7 @@ BOOTSTRAP_URL = 'file:///data/local/tmp/n-o-d' def screenshot(d, suffix=''): os.makedirs('screenshots', exist_ok=True) - fname_base = f'screenshots/{time.time()}-{suffix}' + fname_base = f'screenshots/{time.time():.3f}-{suffix}' d.ui.screenshot(f'{fname_base}.png') with open(f'{fname_base}.xml', 'w') as f: f.write(d.ui.dump_hierarchy())