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
This commit is contained in:
Steve Loughran 2013-04-01 20:57:02 +00:00
parent b55756dd03
commit 7c65dbb938
2 changed files with 4 additions and 1 deletions

View File

@ -54,6 +54,9 @@ Trunk - Unreleased
YARN-359. Fixing commands for container signalling in Windows. (Chris Nauroth
via vinodkv)
YARN-524 TestYarnVersionInfo failing if generated properties doesn't
include an SVN URL(stevel)
Release 2.0.5-beta - UNRELEASED

View File

@ -40,11 +40,11 @@ public class TestYarnVersionInfo extends TestCase {
// 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());