Skip to content

Commit 9b6ec4a

Browse files
committed
create zeppelin-web/dist directory for test
1 parent 129b40f commit 9b6ec4a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

zeppelin-server/src/test/java/org/apache/zeppelin/rest/AbstractTestRestApi.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,11 @@ private static void start(boolean withAuth) throws Exception {
127127
if (!wasRunning) {
128128
System.setProperty(ZeppelinConfiguration.ConfVars.ZEPPELIN_HOME.getVarName(), "../");
129129
System.setProperty(ZeppelinConfiguration.ConfVars.ZEPPELIN_WAR.getVarName(), "../zeppelin-web/dist");
130+
131+
// some test profile does not build zeppelin-web.
132+
// to prevent zeppelin starting up fail, create zeppelin-web/dist directory
133+
new File("../zeppelin-web/dist").mkdirs();
134+
130135
LOG.info("Staring test Zeppelin up...");
131136
ZeppelinConfiguration conf = ZeppelinConfiguration.create();
132137

0 commit comments

Comments
 (0)