From 14d980c4377dc703df8db76f192de19246a0266e Mon Sep 17 00:00:00 2001 From: Kohsuke Kawaguchi Date: Mon, 1 Jul 2013 17:57:17 -0700 Subject: [PATCH] [FIXED JENKINS-15382] Revisiting the fix. Avoid parsing the entire text by only looking at the tail portion. --- changelog.html | 3 + .../java/hudson/tasks/junit/CaseResult.java | 52 +++++++-- .../java/hudson/tasks/junit/SuiteResult.java | 17 +-- .../java/hudson/tasks/junit/TestResult.java | 9 +- core/src/main/java/hudson/util/TextFile.java | 82 ++++++++++++++ .../groovy/hudson/util/TextFileTest.groovy | 102 ++++++++++++++++++ test/src/test/resources/hudson/util/ascii.txt | 54 ++++++++++ 7 files changed, 296 insertions(+), 23 deletions(-) create mode 100644 test/src/test/groovy/hudson/util/TextFileTest.groovy create mode 100644 test/src/test/resources/hudson/util/ascii.txt diff --git a/changelog.html b/changelog.html index c2ae55a9fb61..8ac2f7bd823d 100644 --- a/changelog.html +++ b/changelog.html @@ -55,6 +55,9 @@