]> git.baikalelectronics.ru Git - uboot.git/commit
test: log: Convert log_test from python to C
authorSean Anderson <seanga2@gmail.com>
Tue, 27 Oct 2020 23:55:27 +0000 (19:55 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 30 Oct 2020 14:55:26 +0000 (10:55 -0400)
commit6f6e7fecd0bb9197a068c5cab4cf9caf22ea0485
treea58a6dc1ecd621765bbd91602dc8f188f69ed406
parent5f94bd9e4dd23b75dc9eaea709c514e49691fe21
test: log: Convert log_test from python to C

When rebasing this series I had to renumber all my log tests because
someone made another log test in the meantime. This involved updaing a
number in several places (C and python), and it wasn't checked by the
compiler. So I though "how hard could it be to just rewrite in C?" And
though it wasn't hard, it *was* tedious. Tests are numbered the same as
before to allow for easier review.

A note that if a test fails, everything after it will probably also fail.
This is because that test won't clean up its filters.  There's no easy way
to do the cleanup, except perhaps removing all filters in a wrapper
function.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
cmd/log.c
include/test/log.h
test/log/log_test.c
test/log/syslog_test.h
test/py/tests/test_log.py