Author: eli
Date: Wed Aug  1 21:30:06 2012
New Revision: 1368259

URL: http://svn.apache.org/viewvc?rev=1368259&view=rev
Log:
HADOOP-8480. The native build should honor -DskipTests. Contributed by Colin 
Patrick McCabe

Modified:
    
hadoop/common/branches/branch-2/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/pom.xml

Modified: 
hadoop/common/branches/branch-2/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/pom.xml
URL: 
http://svn.apache.org/viewvc/hadoop/common/branches/branch-2/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/pom.xml?rev=1368259&r1=1368258&r2=1368259&view=diff
==============================================================================
--- 
hadoop/common/branches/branch-2/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/pom.xml
 (original)
+++ 
hadoop/common/branches/branch-2/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/pom.xml
 Wed Aug  1 21:30:06 2012
@@ -49,6 +49,9 @@
           <plugin>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-antrun-plugin</artifactId>
+            <configuration>
+              <skipTests>false</skipTests>
+            </configuration>
             <executions>
               <execution>
                 <id>make</id>
@@ -72,7 +75,10 @@
                 <phase>test</phase>
                 <configuration>
                   <target>
-                    <exec executable="test-container-executor" 
dir="${project.build.directory}/native" failonerror="true">
+                    <exec executable="sh" failonerror="true" 
dir="${project.build.directory}/native">
+                      <arg value="-c"/>
+                      <arg value="[ x$SKIPTESTS = xtrue ] || 
test-container-executor"/>
+                      <env key="SKIPTESTS" value="${skipTests}"/>
                     </exec>
                   </target>
                 </configuration>


Reply via email to