Skip to content

Commit

Permalink
Fix run_test script
Browse files Browse the repository at this point in the history
  • Loading branch information
BoPeng committed Feb 12, 2024
1 parent b59b70c commit 5c46205
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def get_testcases():
for line in output.decode('utf8').splitlines():
if line.strip().startswith('<Module'):
cur_module = line.strip().split()[-1].rstrip('>')
if not os.path.isfile(cur_module):
cur_module = f'test/{cur_module}'
assert os.path.isfile(cur_module)
if line.strip().startswith('<Function'):
tests.append(cur_module + '::' + line.strip().split()[-1].rstrip('>'))
return tests
Expand Down

0 comments on commit 5c46205

Please sign in to comment.