Repository: zeppelin Updated Branches: refs/heads/branch-0.6 7d8bcbb30 -> e2187f2e5
[HOTFIX] Fix CI on branch-0.6 ### What is this PR for? Set `zeppelin.home` property to avoid NullPointer Exception for `getSparkHome` method. ``` Results : Tests in error: InterpreterRestApiTest.init:54->AbstractTestRestApi.startUp:163->AbstractTestRestApi.getSparkHome:211 û NullPointer CredentialsRestApiTest.init:39->AbstractTestRestApi.startUp:163->AbstractTestRestApi.getSparkHome:211 û NullPointer ZeppelinRestApiTest.init:56->AbstractTestRestApi.startUp:163->AbstractTestRestApi.getSparkHome:211 û NullPointer NotebookRestApiTest.init:54->AbstractTestRestApi.startUp:163->AbstractTestRestApi.getSparkHome:211 û NullPointer SecurityRestApiTest.init:44->AbstractTestRestApi.startUp:163->AbstractTestRestApi.getSparkHome:211 û NullPointer ConfigurationsRestApiTest.init:39->AbstractTestRestApi.startUp:163->AbstractTestRestApi.getSparkHome:211 û NullPointer ZeppelinSparkClusterTest.init:48->AbstractTestRestApi.startUp:163->AbstractTestRestApi.getSparkHome:211 û NullPointer NotebookServerTest.init:63->AbstractTestRestApi.startUp:163->AbstractTestRestApi.getSparkHome:211 û NullPointer Tests run: 23, Failures: 0, Errors: 8, Skipped: 0 ``` https://s3.amazonaws.com/archive.travis-ci.org/jobs/162374466/log.txt ### What type of PR is it? Hot Fix ### Questions: * Does the licenses files need update? no * Is there breaking changes for older versions? no * Does this needs documentation? no Author: Mina Lee <mina...@apache.org> Closes #1456 from minahlee/fixCI and squashes the following commits: 874a503 [Mina Lee] set zeppelin.home property Project: http://git-wip-us.apache.org/repos/asf/zeppelin/repo Commit: http://git-wip-us.apache.org/repos/asf/zeppelin/commit/e2187f2e Tree: http://git-wip-us.apache.org/repos/asf/zeppelin/tree/e2187f2e Diff: http://git-wip-us.apache.org/repos/asf/zeppelin/diff/e2187f2e Branch: refs/heads/branch-0.6 Commit: e2187f2e5326b7196762424504526a5187ffa563 Parents: 7d8bcbb Author: Mina Lee <mina...@apache.org> Authored: Sun Sep 25 03:39:48 2016 +0900 Committer: Mina Lee <mina...@apache.org> Committed: Mon Sep 26 10:34:25 2016 +0900 ---------------------------------------------------------------------- .../src/test/java/org/apache/zeppelin/rest/AbstractTestRestApi.java | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/zeppelin/blob/e2187f2e/zeppelin-server/src/test/java/org/apache/zeppelin/rest/AbstractTestRestApi.java ---------------------------------------------------------------------- diff --git a/zeppelin-server/src/test/java/org/apache/zeppelin/rest/AbstractTestRestApi.java b/zeppelin-server/src/test/java/org/apache/zeppelin/rest/AbstractTestRestApi.java index 371211a..34b0cc5 100644 --- a/zeppelin-server/src/test/java/org/apache/zeppelin/rest/AbstractTestRestApi.java +++ b/zeppelin-server/src/test/java/org/apache/zeppelin/rest/AbstractTestRestApi.java @@ -102,6 +102,7 @@ public abstract class AbstractTestRestApi { protected static void startUp() throws Exception { if (!wasRunning) { + System.setProperty(ZeppelinConfiguration.ConfVars.ZEPPELIN_HOME.getVarName(), "../"); LOG.info("Staring test Zeppelin up...");