Refactor xunit test case builder to not use as much str addition
authorChris Matthews <cmatthews5@apple.com>
Fri, 11 May 2018 00:25:42 +0000 (00:25 +0000)
committerChris Matthews <cmatthews5@apple.com>
Fri, 11 May 2018 00:25:42 +0000 (00:25 +0000)
commit5f74591847db036f2fb23cf568886a6a71af3522
tree93c13ad3938faf5553303e33a5bb1c837be6b56b
parenta119322c1de3518e7d6acc0d5bfa0b5942f874cf
Refactor xunit test case builder to not use as much str addition

String concatenation in python is slow.  Refactor to not concatenate the
possibly large strings of test output and instead write them directly
to the output file.

llvm-svn: 332064
llvm/utils/lit/lit/Test.py
llvm/utils/lit/lit/main.py