arshadmohammad opened a new pull request, #3599:
URL: https://github.com/apache/ambari/pull/3599

   ## What changes were proposed in this pull request?
   When -DskipPythonTests passed in mvn command, skipping the python tests. 
   
   ## How was this patch tested?
   Run below command on ambari-agent before and after change
   `mvn test -DskipPythonTests`
   
   **Before the change python test started executing:**
   ```
   [INFO] Running org.apache.ambari.tools.zk.ZkMigratorTest
   [INFO] Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
3.505 s - in org.apache.ambari.tools.zk.ZkMigratorTest
   [INFO] 
   [INFO] Results:
   [INFO] 
   [INFO] Tests run: 11, Failures: 0, Errors: 0, Skipped: 0
   [INFO] 
   [INFO] 
   [INFO] --- exec-maven-plugin:1.2.1:exec (python-test) @ ambari-agent ---
   /ambari/ambari-common/src/main/python/ambari_commons/subprocess32.py:156: 
RuntimeWarning: The _posixsubprocess module is not being used. Could not import 
it from ambari_commons.libs.x86_64 Child process reliability may suffer if your 
program uses threads.
     "program uses threads.", RuntimeWarning)
   test_clear_cache (TestHostCleanup.TestHostCleanup) ... ok
   ```
   
   **After the change, python test is skipped:**
   
   ```
   [INFO]  T E S T S
   [INFO] -------------------------------------------------------
   [INFO] Running org.apache.ambari.tools.zk.ZkMigratorTest
   [INFO] Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
4.748 s - in org.apache.ambari.tools.zk.ZkMigratorTest
   [INFO] 
   [INFO] Results:
   [INFO] 
   [INFO] Tests run: 11, Failures: 0, Errors: 0, Skipped: 0
   [INFO] 
   [INFO] 
   [INFO] --- exec-maven-plugin:1.2.1:exec (python-test) @ ambari-agent ---
   [INFO] skipping execute as per configuraion
   [INFO] 
   ```
   
   Please review [Ambari Contributing 
Guide](https://cwiki.apache.org/confluence/display/AMBARI/How+to+Contribute) 
before opening a pull request.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@ambari.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@ambari.apache.org
For additional commands, e-mail: dev-h...@ambari.apache.org

Reply via email to