Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scripts: ci: check_compliance: fix split on ":" for Windows
The method get_kconfig_dts() relies on str's split() to split lines into fields separated by ':'. The second field is an absolute path to a file. On Windows, an absolute path includes a drive's letter followed by ':' which breaks the current code. On Linux, although rare, a file or directory name may also include ':', which would also break the code. The fix is to constraint the number of splits to 1. The code then becomes: _,b = line.split(":", 1) Signed-off-by: Yves Vandervennet <[email protected]>
- Loading branch information