From 5ca4f0f82e41c2833fd8520bc1f764a3f958bdf6 Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Mon, 1 Apr 2013 20:57:02 +0000 Subject: [PATCH] YARN-524 TestYarnVersionInfo failing if generated properties doesn't include an SVN URL git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1463300 13f79535-47bb-0310-9956-ffa450edef68 (cherry picked from commit 7c65dbb9385567fe1d8e280b81ecb97b109d18a8) Conflicts: hadoop-yarn-project/CHANGES.txt --- .../java/org/apache/hadoop/yarn/util/TestYarnVersionInfo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/util/TestYarnVersionInfo.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/util/TestYarnVersionInfo.java index 0e70adf08eb..47ee8220071 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/util/TestYarnVersionInfo.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/util/TestYarnVersionInfo.java @@ -40,11 +40,11 @@ public class TestYarnVersionInfo { // make sure they aren't Unknown assertTrue("getVersion returned Unknown", !YarnVersionInfo.getVersion().equals("Unknown")); assertTrue("getUser returned Unknown", !YarnVersionInfo.getUser().equals("Unknown")); - assertTrue("getUrl returned Unknown", !YarnVersionInfo.getUrl().equals("Unknown")); assertTrue("getSrcChecksum returned Unknown", !YarnVersionInfo.getSrcChecksum().equals("Unknown")); // these could be Unknown if the VersionInfo generated from code not in svn or git // so just check that they return something + assertNotNull("getUrl returned null", YarnVersionInfo.getUrl()); assertNotNull("getRevision returned null", YarnVersionInfo.getRevision()); assertNotNull("getBranch returned null", YarnVersionInfo.getBranch());