You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
check_compliance.py is broken if run it inside the zephyr\scripts\ci directory on Windows
To Reproduce
Steps to reproduce the behavior:
Go to the zephyr\scripts\ci directory
Run in command line: python check_compliance.py
The KeepSorted test module raises a Python exception.
Expected behavior
No Python exceptions.
Impact
It is not possible to run the compliance tests in the zephyr\scripts\ci directory on Windows.
Logs and console output
C:\_ddm\ZEPHYR\review\butok_gh_3\zephyr\scripts\ci>python check_compliance.py
Running Identity tests in C:/_ddm/ZEPHYR/review/butok_gh_3/zephyr ...
Running GitDiffCheck tests in C:/_ddm/ZEPHYR/review/butok_gh_3/zephyr ...
Running KconfigHWMv2 tests in C:\_ddm\ZEPHYR\review\butok_gh_3\zephyr ...
Running Kconfig tests in C:\_ddm\ZEPHYR\review\butok_gh_3\zephyr ...
Running ClangFormat tests in C:/_ddm/ZEPHYR/review/butok_gh_3/zephyr ...
Running Checkpatch tests in C:/_ddm/ZEPHYR/review/butok_gh_3/zephyr ...
Running Gitlint tests in C:/_ddm/ZEPHYR/review/butok_gh_3/zephyr ...
Running Pylint tests in C:/_ddm/ZEPHYR/review/butok_gh_3/zephyr ...
Running ModulesMaintainers tests in C:/_ddm/ZEPHYR/review/butok_gh_3/zephyr ...
Running ImageSize tests in C:/_ddm/ZEPHYR/review/butok_gh_3/zephyr ...
Running BinaryFiles tests in C:/_ddm/ZEPHYR/review/butok_gh_3/zephyr ...
Running Nits tests in C:/_ddm/ZEPHYR/review/butok_gh_3/zephyr ...
Running KconfigBasic tests in C:\_ddm\ZEPHYR\review\butok_gh_3\zephyr ...
Running DevicetreeBindings tests in C:\_ddm\ZEPHYR\review\butok_gh_3\zephyr ...
Running BoardYml tests in C:\_ddm\ZEPHYR\review\butok_gh_3\zephyr ...
Running KeepSorted tests in C:/_ddm/ZEPHYR/review/butok_gh_3/zephyr ...
Python exception in `C:\_ddm\ZEPHYR\review\butok_gh_3\zephyr\scripts\ci\check_compliance.py`:
Traceback (most recent call last):
File "C:\_ddm\ZEPHYR\review\butok_gh_3\zephyr\scripts\ci\check_compliance.py", line 1769, in main
n_fails = _main(args)
^^^^^^^^^^^
File "C:\_ddm\ZEPHYR\review\butok_gh_3\zephyr\scripts\ci\check_compliance.py", line 1704, in _main
test.run()
File "C:\_ddm\ZEPHYR\review\butok_gh_3\zephyr\scripts\ci\check_compliance.py", line 1548, in run
with open(file, "r") as fp:
^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'scripts/ci/coverage/coverage_analysis.py'
Traceback (most recent call last):
File "C:\_ddm\ZEPHYR\review\butok_gh_3\zephyr\scripts\ci\check_compliance.py", line 1796, in <module>
main(sys.argv[1:])
File "C:\_ddm\ZEPHYR\review\butok_gh_3\zephyr\scripts\ci\check_compliance.py", line 1769, in main
n_fails = _main(args)
^^^^^^^^^^^
File "C:\_ddm\ZEPHYR\review\butok_gh_3\zephyr\scripts\ci\check_compliance.py", line 1704, in _main
test.run()
File "C:\_ddm\ZEPHYR\review\butok_gh_3\zephyr\scripts\ci\check_compliance.py", line 1548, in run
with open(file, "r") as fp:
^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'scripts/ci/coverage/coverage_analysis.py'
Environment (please complete the following information):
Describe the bug
check_compliance.py is broken if run it inside the zephyr\scripts\ci directory on Windows
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No Python exceptions.
Impact
It is not possible to run the compliance tests in the zephyr\scripts\ci directory on Windows.
Logs and console output
Environment (please complete the following information):
OS: Windows
SHA-1: 65051c8
Additional context
If to run it from the top directory, no errors:
The text was updated successfully, but these errors were encountered: