mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 11:36:07 +01:00
tests/emulator: better filenames
This commit is contained in:
parent
faaacc18a5
commit
b7e7cd423d
1 changed files with 1 additions and 1 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue