Skip to content

Commit 1a0195f

Browse files
committed
exclude test when sparkr profile is not defined
1 parent 2307115 commit 1a0195f

File tree

3 files changed

+17
-78
lines changed

3 files changed

+17
-78
lines changed

spark-dependencies/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,12 @@
798798

799799
<profile>
800800
<id>sparkr</id>
801+
802+
<!-- see exclude-sparkr profile in spark -->
803+
<properties>
804+
<sparkr.activate>y</sparkr.activate>
805+
</properties>
806+
801807
<build>
802808
<plugins>
803809
<plugin>

spark/pom.xml

Lines changed: 10 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -433,83 +433,15 @@
433433

434434
<profiles>
435435
<profile>
436-
<id>spark-1.1</id>
437-
<build>
438-
<plugins>
439-
<plugin>
440-
<groupId>org.apache.maven.plugins</groupId>
441-
<artifactId>maven-compiler-plugin</artifactId>
442-
<configuration>
443-
<excludes>
444-
<exclude>**/SparkRInterpreter.java</exclude>
445-
</excludes>
446-
<testExcludes>
447-
<testExclude>**/SparkRInterpreterTest.java</testExclude>
448-
</testExcludes>
449-
</configuration>
450-
</plugin>
451-
<plugin>
452-
<groupId>org.scala-tools</groupId>
453-
<artifactId>maven-scala-plugin</artifactId>
454-
<configuration>
455-
<excludes>
456-
<exclude>**/ZeppelinR.scala</exclude>
457-
<exclude>**/SparkRBackend.scala</exclude>
458-
</excludes>
459-
</configuration>
460-
</plugin>
461-
<plugin>
462-
<groupId>org.apache.maven.plugins</groupId>
463-
<artifactId>maven-surefire-plugin</artifactId>
464-
<configuration>
465-
<excludes>
466-
<exclude>**/SparkRInterpreterTest.java</exclude>
467-
</excludes>
468-
</configuration>
469-
</plugin>
470-
</plugins>
471-
</build>
472-
</profile>
473-
<profile>
474-
<id>spark-1.2</id>
475-
<build>
476-
<plugins>
477-
<plugin>
478-
<groupId>org.apache.maven.plugins</groupId>
479-
<artifactId>maven-compiler-plugin</artifactId>
480-
<configuration>
481-
<excludes>
482-
<exclude>**/SparkRInterpreter.java</exclude>
483-
</excludes>
484-
<testExcludes>
485-
<testExclude>**/SparkRInterpreterTest.java</testExclude>
486-
</testExcludes>
487-
</configuration>
488-
</plugin>
489-
<plugin>
490-
<groupId>org.scala-tools</groupId>
491-
<artifactId>maven-scala-plugin</artifactId>
492-
<configuration>
493-
<excludes>
494-
<exclude>**/ZeppelinR.scala</exclude>
495-
<exclude>**/SparkRBackend.scala</exclude>
496-
</excludes>
497-
</configuration>
498-
</plugin>
499-
<plugin>
500-
<groupId>org.apache.maven.plugins</groupId>
501-
<artifactId>maven-surefire-plugin</artifactId>
502-
<configuration>
503-
<excludes>
504-
<exclude>**/SparkRInterpreterTest.java</exclude>
505-
</excludes>
506-
</configuration>
507-
</plugin>
508-
</plugins>
509-
</build>
510-
</profile>
511-
<profile>
512-
<id>spark-1.3</id>
436+
<id>exclude-sparkr</id>
437+
438+
<!-- see sparkr profile in spark-dependencies -->
439+
<activation>
440+
<property>
441+
<name>!sparkr.activate</name>
442+
</property>
443+
</activation>
444+
513445
<build>
514446
<plugins>
515447
<plugin>
@@ -521,6 +453,7 @@
521453
</excludes>
522454
<testExcludes>
523455
<testExclude>**/SparkRInterpreterTest.java</testExclude>
456+
<testExclude>**/ZeppelinRTest.java</testExclude>
524457
</testExcludes>
525458
</configuration>
526459
</plugin>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public void sparkRTest() throws IOException {
102102
note.run(p.getId());
103103
waitForFinish(p);
104104
assertEquals(Status.FINISHED, p.getStatus());
105-
assertEquals("[1] 3\n", p.getResult().message());
105+
assertEquals("[1] 3", p.getResult().message());
106106
}
107107
ZeppelinServer.notebook.removeNote(note.id());
108108
}

0 commit comments

Comments
 (0)