summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorLucas Bates <lucasb@mojatatu.com>2018-03-29 15:58:10 -0400
committerDavid S. Miller <davem@davemloft.net>2018-03-30 14:22:51 -0400
commitc0b6edef0bf0e33c12eaf80c676ff09def011518 (patch)
tree06f2ade24811edd87f76369a5057777c8e4cf375 /tools
parentccdd0b4c35f2adb7434ed69a89bc68bb6e9089ea (diff)
downloadlinux-c0b6edef0bf0e33c12eaf80c676ff09def011518.tar.gz
linux-c0b6edef0bf0e33c12eaf80c676ff09def011518.tar.bz2
linux-c0b6edef0bf0e33c12eaf80c676ff09def011518.zip
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>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/testing/selftests/tc-testing/tdc.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/tc-testing/tdc.py b/tools/testing/selftests/tc-testing/tdc.py
index 44de4a272a11..87a04a8a5945 100755
--- a/tools/testing/selftests/tc-testing/tdc.py
+++ b/tools/testing/selftests/tc-testing/tdc.py
@@ -490,6 +490,7 @@ def generate_case_ids(alltests):
testlist.append(t)
outfile = open(f, "w")
json.dump(testlist, outfile, indent=4)
+ outfile.write("\n")
outfile.close()
def filter_tests_by_id(args, testlist):