bugfix: Fix windows path case sensitivity

This commit fixes an issue where paths on Windows are case insensitive, for instance when setting the build folder its name would be converted to lowercase.

The culprit is our realpath() function, that was calling os.path.normcase() internally, since we are removing that call it makes sense to just remove the function entirely and call os.path.realpath() wherever necessary.

Closes https://github.com/espressif/esp-idf/issues/10282
This commit is contained in:
Djordje Nedic
2023-01-17 20:51:46 +01:00
parent 490f9ebd50
commit 17d1e9ae36
4 changed files with 19 additions and 24 deletions

View File

@@ -83,3 +83,8 @@ def test_efuse_symmary_cmake_functions(
output = idf_py('efuse-summary')
assert 'FROM_CMAKE: MAC: 00:00:00:00:00:00' in output.stdout
assert 'FROM_CMAKE: WR_DIS: 0' in output.stdout
def test_custom_build_folder(test_app_copy: Path, idf_py: IdfPyFunc) -> None:
idf_py('-BBuiLDdiR', 'build')
assert (test_app_copy / 'BuiLDdiR').is_dir()