OSDN Git Service

tc-testing: Add newline when writing test case files
authorLucas Bates <lucasb@mojatatu.com>
Thu, 29 Mar 2018 19:58:10 +0000 (15:58 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Mar 2018 18:22:51 +0000 (14:22 -0400)
commitc0b6edef0bf0e33c12eaf80c676ff09def011518
tree06f2ade24811edd87f76369a5057777c8e4cf375
parentccdd0b4c35f2adb7434ed69a89bc68bb6e9089ea
tc-testing: Add newline when writing test case files

When using the -i feature to generate random ID numbers for test
cases in tdc, the function that writes the JSON to file doesn't
add a newline character to the end of the file, so we have to
add our own.

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