mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-25 03:47:22 +00:00
s3tests: fix multipart test
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
This commit is contained in:
parent
368b27a5c3
commit
6e70b4b511
1 changed files with 2 additions and 0 deletions
|
@ -4541,6 +4541,8 @@ def generate_random(size, part_size=5*1024*1024):
|
|||
this_part_size = min(left, part_size)
|
||||
for y in range(this_part_size / chunk):
|
||||
s = s + strpart
|
||||
if this_part_size > len(s):
|
||||
s = s + strpart[0:this_part_size - len(s)]
|
||||
yield s
|
||||
if (x == size):
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue