This is an automated email from the ASF dual-hosted git repository.

eyang pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 5bfdf62  YARN-9631.  Added ability to select JavaScript test or skip 
JavaScript tests for YARN application catalog.             Contributed by Eric 
Yang
5bfdf62 is described below

commit 5bfdf62614735e09b67d6c70a0db4e0dbd2743b2
Author: Eric Yang <ey...@apache.org>
AuthorDate: Wed Jun 19 18:45:23 2019 -0400

    YARN-9631.  Added ability to select JavaScript test or skip JavaScript 
tests for YARN application catalog.
                Contributed by Eric Yang
    
    (cherry picked from commit 6002b0c5c6994965d3f7231330248c093869dba2)
---
 .../hadoop-yarn-applications-catalog-webapp/pom.xml       | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git 
a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-applications-catalog/hadoop-yarn-applications-catalog-webapp/pom.xml
 
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-applications-catalog/hadoop-yarn-applications-catalog-webapp/pom.xml
index 273379d..8e716f8 100644
--- 
a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-applications-catalog/hadoop-yarn-applications-catalog-webapp/pom.xml
+++ 
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-applications-catalog/hadoop-yarn-applications-catalog-webapp/pom.xml
@@ -36,6 +36,7 @@
         <vendor.loc>target/generated-sources/vendor</vendor.loc>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <dependency.locations.enabled>false</dependency.locations.enabled>
+        <javascript.test>*Spec</javascript.test>
     </properties>
 
     <dependencies>
@@ -365,6 +366,7 @@
                     </execution>
                 </executions>
                 <configuration>
+                    <skipJasmineTests>${skipTests}</skipJasmineTests>
                     
<webDriverClassName>org.openqa.selenium.phantomjs.PhantomJSDriver</webDriverClassName>
                     <webDriverCapabilities>
                         <capability>
@@ -381,7 +383,7 @@
                     <jsSrcDir>src/main/javascript</jsSrcDir>
                     <jsTestSrcDir>src/test/javascript</jsTestSrcDir>
                     <specIncludes>
-                        <include>*Spec.js</include>
+                        <include>${javascript.test}.js</include>
                     </specIncludes>
                 </configuration>
             </plugin>
@@ -459,6 +461,17 @@
         </build>
       </profile>
       <profile>
+        <id>test-selector</id>
+        <activation>
+          <property>
+            <name>test</name>
+          </property>
+        </activation>
+        <properties>
+          <javascript.test>${test}</javascript.test>
+        </properties>
+      </profile>
+      <profile>
         <id>rest-docs</id>
         <build>
           <plugins>


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-commits-h...@hadoop.apache.org

Reply via email to