fix(tools): create-project with proper file permission - pre-commit fix

Closes https://github.com/espressif/esp-idf/pull/11836
This commit is contained in:
Marek Fiala
2023-07-18 14:08:37 +02:00
parent 354e2c4673
commit e8ee59f68b

View File

@@ -244,7 +244,8 @@ def test_create_project_with_idf_readonly(idf_copy: Path) -> None:
os.chmod(os.path.join(root, name), 0o555) # read & execute
for name in files:
path = os.path.join(root, name)
if '/bin/' in path: continue # skip excutables
if '/bin/' in path:
continue # skip excutables
os.chmod(os.path.join(root, name), 0o444) # readonly
logging.info('Check that command for creating new project will success if the IDF itself is readonly.')
change_to_readonly(idf_copy)