mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 03:10:12 +00:00
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>
This commit is contained in:
parent
ccdd0b4c35
commit
c0b6edef0b
1 changed files with 1 additions and 0 deletions
|
@ -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.write("\n")
|
||||||
outfile.close()
|
outfile.close()
|
||||||
|
|
||||||
def filter_tests_by_id(args, testlist):
|
def filter_tests_by_id(args, testlist):
|
||||||
|
|
Loading…
Reference in a new issue