lnt: remove duplicate code & dump test-suite logfile
lnt: remove duplicate code & dump test-suite logfile

Former-commit-id: 0903d7a87a0106758218c6002a26dd7ec32a8904
Former-commit-id: 5bbcbd461b4df849cd2e4b828914ff9ac6ec1f94 [formerly dbf36b0cecc3e8e75567190c443f5578c58c0fce] [formerly f56511530ae84ddac4256192dfa1435569a3c056 [formerly aa0ed368487cd4620d055bb9e4d9dcbbd7242350]]
Former-commit-id: 601a1f99acd6d5e87bd8e15635f0aa70c2430973 [formerly 04432e65d21a992c11f30078b8657a63a7f4aadb]
Former-commit-id: 4887e1c651a84dc118b11a50762178f5ed12965d
PolyJIT/benchbuild,PolyJIT/benchbuild,PolyJIT/benchbuild,PolyJIT/benchbuild