Skip to content

Commit c0b6ede

Browse files
Lucas Batesdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent ccdd0b4 commit c0b6ede

File tree

1 file changed

+1
-0
lines changed
  • tools/testing/selftests/tc-testing

1 file changed

+1
-0
lines changed

tools/testing/selftests/tc-testing/tdc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,7 @@ def generate_case_ids(alltests):
490490
testlist.append(t)
491491
outfile = open(f, "w")
492492
json.dump(testlist, outfile, indent=4)
493+
outfile.write("\n")
493494
outfile.close()
494495

495496
def filter_tests_by_id(args, testlist):

0 commit comments

Comments
 (0)