class CephTestException(Exception):
msg_fmt = "An exception has been encountered."
- def __init__(self, message: str = None, **kwargs):
+ def __init__(self, message: str = '', **kwargs):
self.kwargs = kwargs
if not message:
message = self.msg_fmt % kwargs
@classmethod
def print_results(cls,
title: str = "Test results",
- description: str = None):
+ description: str = ''):
pass
def __init__(self,
*args,
- fio_size_mb: int = None,
+ fio_size_mb: int = 0,
iterations: int = 1,
workers: int = 1,
bs: str = "2M",
return self.image.path
@Tracer.trace
- def _run_fio(self, fio_size_mb=None):
+ def _run_fio(self, fio_size_mb: int = 0) -> None:
LOG.info("Starting FIO test.")
cmd = [
"fio", "--thread", "--output-format=json",
@classmethod
def print_results(cls,
title: str = "Benchmark results",
- description: str = None):
+ description: str = ''):
if description:
title = "%s (%s)" % (title, description)