Commit c0b6edef authored by Lucas Bates's avatar Lucas Bates Committed by David S. Miller

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: default avatarLucas Bates <>
Signed-off-by: default avatarDavid S. Miller <>
parent ccdd0b4c
...@@ -490,6 +490,7 @@ def generate_case_ids(alltests): ...@@ -490,6 +490,7 @@ def generate_case_ids(alltests):
testlist.append(t) testlist.append(t)
outfile = open(f, "w") outfile = open(f, "w")
json.dump(testlist, outfile, indent=4) json.dump(testlist, outfile, indent=4)
outfile.close() outfile.close()
def filter_tests_by_id(args, testlist): def filter_tests_by_id(args, testlist):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment