fix search for file with impossible size (had forgotten that volume_size is in MB)
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Wed, 15 Jun 2016 13:07:24 +0000 (15:07 +0200)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Wed, 15 Jun 2016 13:07:24 +0000 (15:07 +0200)
testing/test_multivol_compression_sizes.py

index 58f09fc..5b50331 100644 (file)
@@ -199,7 +199,7 @@ def test(volume_size, input_size_factor, mode, temp_dir, prefix='',
             if file_name.startswith(base_name):
                 continue    # do not accidentally add self
             new_size = os.lstat(file_name).st_size
-            if new_size > max(volume_size, input_size-added_size):
+            if new_size > max(volume_size*1.e6, input_size-added_size):
                 continue    # add at most one volume_size too much
             new_name = '{}_{:04d}_{}_{:09d}' \
                        .format(base_name, count,