Fix pattern for daemon tests and sort by filename

update-lkm
nirenjan 2022-09-22 09:39:30 -07:00
parent b1c7a16eac
commit ecfb865c58
1 changed files with 2 additions and 2 deletions

View File

@ -167,8 +167,8 @@ class Test:
def find_and_parse_testcase_files(self): def find_and_parse_testcase_files(self):
"""Find and parse *.tc files""" """Find and parse *.tc files"""
basedir = os.path.dirname(os.path.realpath(__file__)) basedir = os.path.dirname(os.path.realpath(__file__))
pattern = os.path.join(basedir, '**', 'comm', '*.tc') pattern = os.path.join(basedir, 'tests', '**', '*.tc')
tc_files = glob.glob(pattern, recursive=True) tc_files = sorted(glob.glob(pattern, recursive=True))
for tc_file in tc_files: for tc_file in tc_files:
with open(tc_file) as tc_fd: with open(tc_file) as tc_fd: