kumquat-buildroot/support/testing/tests/utils
Ricardo Martincoski de03312db0 utils/get-developers: print error for correct line
Start counting the line numbers in 1 instead of 0, in case an error
must be printed.

Both the error about a developer entry with no file entry and the error
about a file entry with no developer entry actually belong to the
non-empty line previous the one being analysed, so in these cases print
the line number from the line before.

Also count empty and comment lines, so a developer fixing the file can
jump to the correct line (or the nearest one).

At same time standardize the messages, printing the line number
also in the case of a warning for a file that is not in the tree
anymore.

Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2023-02-07 09:24:16 +01:00
..
br2-external support/testing: test check-package ignore list 2023-02-06 18:54:18 +01:00
test_get_developers support/testing/tests: add get-developers tests 2022-07-23 16:32:59 +02:00
__init__.py
test_check_package.py support/testing: test check-package ignore list 2023-02-06 18:54:18 +01:00
test_get_developers.py utils/get-developers: print error for correct line 2023-02-07 09:24:16 +01:00