Update gcmtest.py

This commit is contained in:
tmpz23 2022-01-30 11:24:12 +01:00 committed by GitHub
parent 701e23f20b
commit f04984cf62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,7 @@ repack_path = Path("repack")
def test_storage(): def test_storage():
total, used, free = shutil.disk_usage("/") total, used, free = shutil.disk_usage("/")
if free - 10**12 < 3 * sum(path.stat().st_size for path in roms_path.glob('*') if path.is_file()): if free - 10**10 < 3 * sum(path.stat().st_size for path in roms_path.glob('*') if path.is_file()):
raise Exception("Error - Not enought free space on the disk to run tests.") raise Exception("Error - Not enought free space on the disk to run tests.")