Cast block count to integer
As more tests reuse the code to write data into
a mounted file system, we can move this integer
casting into that portion of the code; and remove
responsibility from the caller.
TrivialFix
Change-Id: I781cba8b705262cfafb1be51e53b6781bd5da040
diff --git a/manila_tempest_tests/tests/scenario/manager_share.py b/manila_tempest_tests/tests/scenario/manager_share.py
index 5a38079..871deaf 100644
--- a/manila_tempest_tests/tests/scenario/manager_share.py
+++ b/manila_tempest_tests/tests/scenario/manager_share.py
@@ -200,7 +200,7 @@
: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\""
diff --git a/manila_tempest_tests/tests/scenario/test_share_shrink.py b/manila_tempest_tests/tests/scenario/test_share_shrink.py
index 03427af..8bbb921 100644
--- a/manila_tempest_tests/tests/scenario/test_share_shrink.py
+++ b/manila_tempest_tests/tests/scenario/test_share_shrink.py
@@ -71,7 +71,7 @@
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,