diff options
author | Lucas Bates | 2018-03-29 15:58:10 -0400 |
---|---|---|
committer | David S. Miller | 2018-03-30 14:22:51 -0400 |
commit | c0b6edef0bf0e33c12eaf80c676ff09def011518 (patch) | |
tree | 06f2ade24811edd87f76369a5057777c8e4cf375 /tools/testing/selftests/tc-testing | |
parent | ccdd0b4c35f2adb7434ed69a89bc68bb6e9089ea (diff) |
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/testing/selftests/tc-testing')
-rwxr-xr-x | tools/testing/selftests/tc-testing/tdc.py | 1 |
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): |