make raid-size-tests.py a tiny bit friendlier

This commit is contained in:
Michael Hudson-Doyle 2019-11-07 14:21:47 +13:00
parent d532648794
commit 5d8c983448
1 changed files with 7 additions and 3 deletions

View File

@ -112,10 +112,14 @@ def verify_size_ok(level, sizes):
level, sz , calc_size, real_size), end=' ')
if calc_size > real_size:
print("BAAAAAAAAAAAD", real_size - calc_size)
if os.environ.get('DEBUG'):
print(raid)
input('waiting: ')
elif calc_size == real_size:
print("exactly right!")
r = True
else:
print("OK by", real_size - calc_size)
print("underestimated size by", real_size - calc_size)
r = True
finally:
cleanup()