Silence fir bench output for diagnostic smoke tests

This commit is contained in:
Simon Ogorodnik
2019-08-30 16:03:33 +03:00
parent 312e93859b
commit 438c90b477
2 changed files with 4 additions and 3 deletions
@@ -304,7 +304,8 @@ fun doFirResolveTestBench(
firFiles: List<FirFile>,
transformers: List<FirTransformer<Nothing?>>,
gc: Boolean = true,
withProgress: Boolean = false
withProgress: Boolean = false,
silent: Boolean = true
) {
if (gc) {
@@ -313,7 +314,7 @@ fun doFirResolveTestBench(
val bench = FirResolveBench(withProgress)
bench.processFiles(firFiles, transformers)
bench.report(System.out)
if (!silent) bench.report(System.out)
bench.throwFailure()
}
@@ -79,6 +79,6 @@ class FirResolveTestTotalKotlin : AbstractFirResolveWithSessionTestCase() {
println("Raw FIR up, files: ${firFiles.size}")
doFirResolveTestBench(firFiles, totalTransformer.transformers, withProgress = true)
doFirResolveTestBench(firFiles, totalTransformer.transformers, withProgress = true, silent = false)
}
}