tests/backup: use round volume size

When handling LVM volumes, size must be multiply of 4MB.
This commit is contained in:
Marek Marczykowski-Górecki 2016-09-29 01:58:21 +02:00
parent e938aa61ab
commit f2d79b9379
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -89,9 +89,9 @@ class BackupTestsMixin(qubes.tests.SystemTestsMixin):
f.seek(0)
for block_num in range(size/block_size):
f.write('a' * block_size)
if sparse:
f.seek(block_size, 1)
f.write('a' * block_size)
f.close()