test/lvol: update the number of test cases

Update the method which used to get the number of test cases.

Change-Id: I4982fdabdac519b2a67ed11b3fc4b4a7ccf07bcc
Signed-off-by: Chen Wang <chenx.wang@intel.com>
Reviewed-on: https://review.gerrithub.io/399795
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Chen Wang 2018-02-14 11:13:59 +08:00 committed by Daniel Verkamp
parent f5fea785b0
commit c95cd19fbe

View File

@ -21,7 +21,7 @@ def test_counter():
'''
:return: the number of tests
'''
return 37
return ['test_case' in i for i in dir(TestCases)].count(True)
def header(num):