test/lvol: fix the range of test cases when use "all" parameter
Script will produce error when use "./test/lvol/lvol.sh all" command. The range(1, test_counter() + 1) means run case 1,2,3... but the case 2 doesn't exist. Change-Id: I3e36b0e08dee1d2683da5a499a5db136d65d3022 Signed-off-by: Chen Wang <chenx.wang@intel.com> Reviewed-on: https://review.gerrithub.io/404067 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
74af349ddb
commit
a81dd12daf
@ -33,7 +33,7 @@ if __name__ == "__main__":
|
||||
tc = TestCases(rpc_py, total_size, block_size, cluster_size, base_dir_path, app_path)
|
||||
|
||||
if "all" in tc_list:
|
||||
for num_test in range(1, test_counter() + 1):
|
||||
for num_test in [i.split("test_case")[1] for i in dir(TestCases) if "test_case" in i]:
|
||||
fail_count = 0
|
||||
exec("fail_count += tc.test_case{num_test}"
|
||||
"()".format(num_test=num_test))
|
||||
|
Loading…
x
Reference in New Issue
Block a user