Merge "Cast block count to integer"
This commit is contained in:
commit
67d4e7fb4d
|
@ -200,7 +200,7 @@ class ShareScenarioTest(manager.NetworkScenarioTest):
|
|||
:param output_file: Path to the file to be written
|
||||
:param input_file: Path to the file to read from
|
||||
"""
|
||||
|
||||
block_count = int(block_count)
|
||||
remote_client.exec_command(
|
||||
"sudo sh -c \"dd bs={} count={} if={} of={} conv=fsync"
|
||||
" iflag=fullblock\""
|
||||
|
|
|
@ -71,7 +71,7 @@ class ShareShrinkBase(manager.ShareScenarioTest):
|
|||
LOG.debug('Step 5 - mount')
|
||||
self.mount_share(locations[0], remote_client)
|
||||
|
||||
total_blocks = int((1024 * default_share_size) / 64)
|
||||
total_blocks = (1024 * default_share_size) / 64
|
||||
blocks = total_blocks + 4
|
||||
LOG.debug('Step 6 - writing {} * 64MB blocks'.format(blocks))
|
||||
self.write_data_to_mounted_share_using_dd(remote_client,
|
||||
|
|
Loading…
Reference in New Issue