Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Lucas Bates and committed by
David S. Miller
c0b6edef ccdd0b4c

+1
+1
tools/testing/selftests/tc-testing/tdc.py
··· 490 490 testlist.append(t) 491 491 outfile = open(f, "w") 492 492 json.dump(testlist, outfile, indent=4) 493 + outfile.write("\n") 493 494 outfile.close() 494 495 495 496 def filter_tests_by_id(args, testlist):