mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/ci_pytest_7.x' into 'master'
ci: make pytest build script compatible with pytest 7.x See merge request espressif/esp-idf!17032
This commit is contained in:
commit
3441dd1e98
@ -105,6 +105,11 @@ def get_pytest_dirs(folder: str) -> List[str]:
|
||||
raise RuntimeError('pytest collection failed')
|
||||
|
||||
sys.stdout.flush() # print instantly
|
||||
test_file_paths = set(node.fspath for node in collector.nodes)
|
||||
|
||||
try:
|
||||
test_file_paths = set(node.path for node in collector.nodes)
|
||||
except AttributeError:
|
||||
# pytest 6.x
|
||||
test_file_paths = set(node.fspath for node in collector.nodes)
|
||||
|
||||
return [os.path.dirname(file) for file in test_file_paths]
|
||||
|
Loading…
Reference in New Issue
Block a user