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 7c65dbb938
)
Conflicts:
hadoop-yarn-project/CHANGES.txt
This commit is contained in:
parent
d9afb237fb
commit
5ca4f0f82e
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue