tools: tc-testing: Refactor test-runner
authorBrenda J. Butler <bjb@mojatatu.com>
Wed, 14 Feb 2018 19:09:20 +0000 (14:09 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Feb 2018 20:38:33 +0000 (15:38 -0500)
commit6fac733d9d07c4fcc349a44add75c6435cc3f18c
tree5a688f285f90356bde320e57ce6f4cccc8f87376
parentf87c7f646c6f704b29504d63c4ab965584c4aacb
tools: tc-testing: Refactor test-runner

Split the test_runner function into the loop part (test_runner)
and the contents (run_one_test) for maintainability.
It makes it a little easier to catch exceptions
in an individual test, and keep going (and flush a bunch
of tap results for the skipped tests).

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