]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc8dbc56b359b86721d883ba5d68e764f9c9401f1
tree5a688f285f90356bde320e57ce6f4cccc8f87376
parentbf65c4b0a2bb6249ba01853c778b9cf8d50d1d10
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