Merge "Cast block count to integer"

This commit is contained in:
Zuul 2019-06-27 15:25:48 +00:00 committed by Gerrit Code Review
commit 67d4e7fb4d
2 changed files with 2 additions and 2 deletions

View File

@ -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\""

View File

@ -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,