test: set norandommap to be a variable in fio.py
The norandommap and verify parameter are mutually exclusive. So add norandommap variable in fio template. If verify is enabled, the norandommap is zero. Change-Id: I60a82ee561a3ae9fa94a58c00a35576f60fbc185 Signed-off-by: Liang Yan <liang.z.yan@intel.com> Reviewed-on: https://review.gerrithub.io/417094 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
parent
8b38468db4
commit
58b02f47a0
@ -16,7 +16,7 @@ ioengine=libaio
|
|||||||
direct=1
|
direct=1
|
||||||
bs=%(blocksize)d
|
bs=%(blocksize)d
|
||||||
iodepth=%(iodepth)d
|
iodepth=%(iodepth)d
|
||||||
norandommap=1
|
norandommap=%(norandommap)d
|
||||||
%(verify)s
|
%(verify)s
|
||||||
verify_dump=1
|
verify_dump=1
|
||||||
|
|
||||||
@ -86,12 +86,15 @@ def get_target_devices():
|
|||||||
|
|
||||||
|
|
||||||
def create_fio_config(size, q_depth, devices, test, run_time, verify):
|
def create_fio_config(size, q_depth, devices, test, run_time, verify):
|
||||||
|
norandommap = 0
|
||||||
if not verify:
|
if not verify:
|
||||||
verifyfio = ""
|
verifyfio = ""
|
||||||
|
norandommap = 1
|
||||||
else:
|
else:
|
||||||
verifyfio = verify_template
|
verifyfio = verify_template
|
||||||
fiofile = fio_template % {"blocksize": size, "iodepth": q_depth,
|
fiofile = fio_template % {"blocksize": size, "iodepth": q_depth,
|
||||||
"testtype": test, "runtime": run_time, "verify": verifyfio}
|
"testtype": test, "runtime": run_time,
|
||||||
|
"norandommap": norandommap, "verify": verifyfio}
|
||||||
for (i, dev) in enumerate(devices):
|
for (i, dev) in enumerate(devices):
|
||||||
fiofile += fio_job_template % {"jobnumber": i, "device": dev}
|
fiofile += fio_job_template % {"jobnumber": i, "device": dev}
|
||||||
return fiofile
|
return fiofile
|
||||||
|
Loading…
Reference in New Issue
Block a user