mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-26 15:12:37 +01:00
iozone: pylint fixes
This commit is contained in:
@@ -11,6 +11,7 @@
|
|||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
# pylint: disable=attribute-defined-outside-init
|
||||||
|
|
||||||
from wlauto import Workload, Parameter, Executable
|
from wlauto import Workload, Parameter, Executable
|
||||||
from wlauto.exceptions import ConfigError
|
from wlauto.exceptions import ConfigError
|
||||||
@@ -158,9 +159,9 @@ class Iozone(Workload):
|
|||||||
# check if -b option is used
|
# check if -b option is used
|
||||||
match = re.search(r'-b (.?\w+.?\w+?\s)', iozone_command)
|
match = re.search(r'-b (.?\w+.?\w+?\s)', iozone_command)
|
||||||
if match:
|
if match:
|
||||||
self.user_file = match.group(1)
|
self.user_file = match.group(1)
|
||||||
self.device_output_file = os.path.join(self.device.working_directory,
|
self.device_output_file = os.path.join(self.device.working_directory,
|
||||||
self.user_file)
|
self.user_file)
|
||||||
|
|
||||||
return iozone_command
|
return iozone_command
|
||||||
|
|
||||||
@@ -234,7 +235,7 @@ class Iozone(Workload):
|
|||||||
|
|
||||||
# break list of results into smaller groups based on
|
# break list of results into smaller groups based on
|
||||||
# test name
|
# test name
|
||||||
def parse_metrics(self, context, plist):
|
def parse_metrics(self, context, plist): # pylint: disable=no-self-use
|
||||||
subvalue_list = []
|
subvalue_list = []
|
||||||
value_list = []
|
value_list = []
|
||||||
for values in plist:
|
for values in plist:
|
||||||
@@ -262,7 +263,7 @@ class Iozone(Workload):
|
|||||||
for v in values:
|
for v in values:
|
||||||
templist = OrderedDict(izip_longest(record_sizes, v))
|
templist = OrderedDict(izip_longest(record_sizes, v))
|
||||||
|
|
||||||
for reclen,value in templist.items():
|
for reclen, value in templist.items():
|
||||||
if reclen is '0':
|
if reclen is '0':
|
||||||
fs = value
|
fs = value
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user