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)
commit170b8ffa71412eeacb20589b807f4bc75a61e507
tree94cb539f6536fae1a08fccfc9e4a4c3d8fd4e3bf
parent6c26c3fbc3295ce71f5e03caccc9eeb7369123ca
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