Right now, the max output size for a section in a .jtr file is determined by a system property javatest.maxOutputSize. It is cached up front, and cannot be changed.
It would be nice to be able to override this on a per-test basis, for example, by providing a method TestResult.setMaxOutputSize(int size).
jtreg already has a mechanism to specify properties on groups of tests (TEST.properties) and could conceivably provide a mechanism on a per-section basis (e.g. @run main/maxOutputSize=1M) but right now, jtreg has no way to set such a value in TestResult.
I suspect it is good enough to be able to set the value for the TestResult as a whole (and not per TestResult.Section.)
It would be nice to be able to override this on a per-test basis, for example, by providing a method TestResult.setMaxOutputSize(int size).
jtreg already has a mechanism to specify properties on groups of tests (TEST.properties) and could conceivably provide a mechanism on a per-section basis (e.g. @run main/maxOutputSize=1M) but right now, jtreg has no way to set such a value in TestResult.
I suspect it is good enough to be able to set the value for the TestResult as a whole (and not per TestResult.Section.)
- blocks
-
CODETOOLS-7902134 jtreg: Provide ability to set the maxOutputSize for a test
-
- Closed
-