]> git.baikalelectronics.ru Git - kernel.git/commit
tc-testing: better test case file error reporting
authorBrenda J. Butler <bjb@mojatatu.com>
Tue, 31 Oct 2017 18:29:03 +0000 (14:29 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Nov 2017 02:04:47 +0000 (11:04 +0900)
commitaec15ad496184f268e34e2bcb248fb06cc006511
tree94cb539f6536fae1a08fccfc9e4a4c3d8fd4e3bf
parent155e2153f9ccac15598da4f10cda8852126d2838
tc-testing: better test case file error reporting

tdc.py reads a bunch of test cases in json files.  When a json file
cannot be parsed, tdc just exits and does not run any tests.

This patch will cause tdc to print a message with the file name and
line number, then that file will be ignored and the rest of the tests
will be processed.

Signed-off-by: Brenda J. Butler <bjb@mojatatu.com>
Acked-by: Lucas Bates <lucasb@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/tc-testing/tdc.py