Skip to content

Commit ec6d24a

Browse files
committed
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
1 parent fda4de1 commit ec6d24a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

hadoop-yarn-project/CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ Trunk - Unreleased
5454

5555
YARN-359. Fixing commands for container signalling in Windows. (Chris Nauroth
5656
via vinodkv)
57+
58+
YARN-524 TestYarnVersionInfo failing if generated properties doesn't
59+
include an SVN URL(stevel)
5760

5861
Release 2.0.5-beta - UNRELEASED
5962

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/util/TestYarnVersionInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ public void testVersionInfoGenerated() throws IOException {
4040
// make sure they aren't Unknown
4141
assertTrue("getVersion returned Unknown", !YarnVersionInfo.getVersion().equals("Unknown"));
4242
assertTrue("getUser returned Unknown", !YarnVersionInfo.getUser().equals("Unknown"));
43-
assertTrue("getUrl returned Unknown", !YarnVersionInfo.getUrl().equals("Unknown"));
4443
assertTrue("getSrcChecksum returned Unknown", !YarnVersionInfo.getSrcChecksum().equals("Unknown"));
4544

4645
// these could be Unknown if the VersionInfo generated from code not in svn or git
4746
// so just check that they return something
47+
assertNotNull("getUrl returned null", YarnVersionInfo.getUrl());
4848
assertNotNull("getRevision returned null", YarnVersionInfo.getRevision());
4949
assertNotNull("getBranch returned null", YarnVersionInfo.getBranch());
5050

0 commit comments

Comments
 (0)