esp-idf/tools/test_idf_py
Frantisek Hrbata 3e8b1a90cc ci(tools): fix test_hints.py to run on windows
1. The original test, before hint modules support was added, used
tempfile.NamedTemporaryFile in a way which is not supported on windows.
It was having the file open, which the hints tried to read it, leading
the EPERM exception. The docs[1] says this is not supported.
<quote>
Whether the name can be used to open the file a second time, while the
named temporary file is still open, varies across platforms (it can be
so used on Unix; it cannot on Windows)
</quote>

2. The hint module component_requirements test used the idf.py directly,
which is idf.py.exe on windows.Now it's starting idf.py through python.
We could probably used shell=True, but this approach is used in other
tests too.

Anyway the test are now passing on windows.

[1] https://docs.python.org/3/library/tempfile.html

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2023-08-17 07:57:39 +02:00
..
extra_path idf.py: Change copyright in tools dir 2022-05-24 14:01:50 +02:00
test_idf_extensions/test_ext idf.py: Change copyright in tools dir 2022-05-24 14:01:50 +02:00
error_output.yml hints: add a more complete description for component not found errors 2022-12-06 10:54:44 +08:00
idf_ext.py idf.py: Change copyright in tools dir 2022-05-24 14:01:50 +02:00
idf_py_help_schema.json Tools: Export selected target actions 2022-07-19 20:02:55 +02:00
test_hints.py ci(tools): fix test_hints.py to run on windows 2023-08-17 07:57:39 +02:00
test_idf_py.py tools: fixed elf symbols load if gdbinit specified 2022-09-21 22:39:03 +04:00