mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
unit tests: Make UnitTestParser ignore non-directories inside 'components' dirs
This commit is contained in:
parent
1e897561e8
commit
e014d268fe
@ -1,5 +1,6 @@
|
|||||||
import yaml
|
import yaml
|
||||||
import os
|
import os
|
||||||
|
import os.path
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
import shutil
|
import shutil
|
||||||
@ -41,7 +42,7 @@ class Parser(object):
|
|||||||
def parse_test_folders(cls):
|
def parse_test_folders(cls):
|
||||||
test_folder_paths = list()
|
test_folder_paths = list()
|
||||||
os.chdir(os.path.join(IDF_PATH, "components"))
|
os.chdir(os.path.join(IDF_PATH, "components"))
|
||||||
component_dirs = os.listdir(".")
|
component_dirs = [d for d in os.listdir(".") if os.path.isdir(d)]
|
||||||
for dir in component_dirs:
|
for dir in component_dirs:
|
||||||
os.chdir(dir)
|
os.chdir(dir)
|
||||||
if "test" in os.listdir("."):
|
if "test" in os.listdir("."):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user