mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
ci: apply idf-ci 1.x
This commit is contained in:
@@ -33,7 +33,8 @@ def safe_cleanup_tmpdir(tmpdir: tempfile.TemporaryDirectory) -> None:
|
||||
"""Safely cleanup temporary directory, handling specific errors on Windows."""
|
||||
try:
|
||||
tmpdir.cleanup()
|
||||
except (PermissionError, NotADirectoryError):
|
||||
except (PermissionError, NotADirectoryError, OSError):
|
||||
# OSError: The directory is not empty
|
||||
warnings.warn(
|
||||
f'Failed to cleanup temporary directory {tmpdir.name}. '
|
||||
'This is common on Windows when files are still in use.',
|
||||
|
||||
@@ -27,9 +27,9 @@ except ImportError:
|
||||
import idf
|
||||
|
||||
current_dir = os.path.dirname(os.path.realpath(__file__))
|
||||
idf_py_path = os.path.join(current_dir, '..', 'idf.py')
|
||||
idf_py_path = os.path.normpath(os.path.join(current_dir, '..', 'idf.py'))
|
||||
extension_path = os.path.join(current_dir, 'test_idf_extensions', 'test_ext')
|
||||
py_actions_path = os.path.join(current_dir, '..', 'idf_py_actions')
|
||||
py_actions_path = os.path.normpath(os.path.join(current_dir, '..', 'idf_py_actions'))
|
||||
link_path = os.path.join(py_actions_path, 'test_ext')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user