hadoop-yarn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cnaur...@apache.org
Subject svn commit: r1492396 - in /hadoop/common/branches/branch-2.1-beta/hadoop-yarn-project: CHANGES.txt hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/view/TestInfoBlock.java
Date Wed, 12 Jun 2013 19:37:38 GMT
Author: cnauroth
Date: Wed Jun 12 19:37:38 2013
New Revision: 1492396

URL: http://svn.apache.org/r1492396
Log:
YARN-700. Merging change r1492386 from branch-2 to branch-2.1-beta.

Modified:
    hadoop/common/branches/branch-2.1-beta/hadoop-yarn-project/CHANGES.txt
    hadoop/common/branches/branch-2.1-beta/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/view/TestInfoBlock.java

Modified: hadoop/common/branches/branch-2.1-beta/hadoop-yarn-project/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-2.1-beta/hadoop-yarn-project/CHANGES.txt?rev=1492396&r1=1492395&r2=1492396&view=diff
==============================================================================
--- hadoop/common/branches/branch-2.1-beta/hadoop-yarn-project/CHANGES.txt (original)
+++ hadoop/common/branches/branch-2.1-beta/hadoop-yarn-project/CHANGES.txt Wed Jun 12 19:37:38
2013
@@ -455,6 +455,9 @@ Release 2.1.0-beta - UNRELEASED
     YARN-767. Initialize application metrics at RM bootup. (Jian He via
     acmurthy) 
 
+    YARN-700. TestInfoBlock fails on Windows because of line ending missmatch.
+    (Ivan Mitic via cnauroth)
+
   BREAKDOWN OF HADOOP-8562 SUBTASKS AND RELATED JIRAS
 
     YARN-158. Yarn creating package-info.java must not depend on sh.

Modified: hadoop/common/branches/branch-2.1-beta/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/view/TestInfoBlock.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-2.1-beta/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/view/TestInfoBlock.java?rev=1492396&r1=1492395&r2=1492396&view=diff
==============================================================================
--- hadoop/common/branches/branch-2.1-beta/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/view/TestInfoBlock.java
(original)
+++ hadoop/common/branches/branch-2.1-beta/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/view/TestInfoBlock.java
Wed Jun 12 19:37:38 2013
@@ -70,12 +70,12 @@ public class TestInfoBlock {
     WebAppTests.testBlock(MultilineInfoBlock.class);
     TestInfoBlock.pw.flush();
     String output = TestInfoBlock.sw.toString().replaceAll(" +", " ");
-    String expectedSinglelineData = "<tr class=\"odd\">\n"
-      + " <th>\n Single_line_value\n <td>\n This is one line.\n";
-    String expectedMultilineData = "<tr class=\"even\">\n"
-      + " <th>\n Multiple_line_value\n <td>\n <div>\n"
-      + " This is first line.\n </div>\n <div>\n"
-      + " This is second line.\n </div>\n";
+    String expectedSinglelineData = String.format("<tr class=\"odd\">%n"
+      + " <th>%n Single_line_value%n <td>%n This is one line.%n");
+    String expectedMultilineData = String.format("<tr class=\"even\">%n"
+      + " <th>%n Multiple_line_value%n <td>%n <div>%n"
+      + " This is first line.%n </div>%n <div>%n"
+      + " This is second line.%n </div>%n");
     assertTrue(output.contains(expectedSinglelineData) && output.contains(expectedMultilineData));
   }
 }
\ No newline at end of file



Mime
View raw message