sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gwens...@apache.org
Subject sqoop git commit: SQOOP-2429: Sqoop2: Precommit: Add parameter --run-integration-tests
Date Mon, 27 Jul 2015 21:05:56 GMT
Repository: sqoop
Updated Branches:
  refs/heads/sqoop2 227d3e87b -> e1a8f5ca3


SQOOP-2429: Sqoop2: Precommit: Add parameter --run-integration-tests

(Jarek Jarcec Cecho via Gwen Shapira)


Project: http://git-wip-us.apache.org/repos/asf/sqoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/sqoop/commit/e1a8f5ca
Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/e1a8f5ca
Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/e1a8f5ca

Branch: refs/heads/sqoop2
Commit: e1a8f5ca353c2eca572e9195b8bbfc8f2f179422
Parents: 227d3e8
Author: Gwen Shapira <cshapi@gmail.com>
Authored: Mon Jul 27 14:04:53 2015 -0700
Committer: Gwen Shapira <cshapi@gmail.com>
Committed: Mon Jul 27 14:04:53 2015 -0700

----------------------------------------------------------------------
 dev-support/test-patch.py | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sqoop/blob/e1a8f5ca/dev-support/test-patch.py
----------------------------------------------------------------------
diff --git a/dev-support/test-patch.py b/dev-support/test-patch.py
index b3b6e55..7ae7901 100755
--- a/dev-support/test-patch.py
+++ b/dev-support/test-patch.py
@@ -350,6 +350,8 @@ parser.add_option("--file", dest="filename",
                   help="Test patch file", metavar="FILE")
 parser.add_option("--run-tests", dest="run_tests",
                   help="Run Tests", action="store_true")
+parser.add_option("--run-integration-tests", dest="run_integration_tests",
+                  help="Run Integration Tests", action="store_true")
 parser.add_option("--username", dest="username",
                   help="JIRA Username", metavar="USERNAME", default="flumeqa")
 parser.add_option("--output", dest="output_dir",
@@ -382,6 +384,7 @@ defect = options.defect
 username = options.username
 password = options.password
 run_tests = options.run_tests
+run_integration_tests = options.run_integration_tests
 post_results = options.post_results
 strip = options.strip
 patch_cmd = options.patch_cmd
@@ -470,10 +473,15 @@ git_apply(result, patch_cmd, patch_file, strip, output_dir)
 static_test(result, patch_file, output_dir)
 mvn_rat(result, output_dir)
 mvn_install(result, output_dir)
+# Unit tests are conditional
 if run_tests:
   mvn_test(result, output_dir)
+else:
+  result.info("Unit tests were skipped, please add --run-tests")
+# Integration tests are conditional
+if run_integration_tests:
   mvn_integration(result, output_dir)
 else:
-  result.info("patch applied and built but tests did not execute")
+  result.info("Integration tests were skipped, please add --run-integration-tests")
 
 result.exit_handler()


Mime
View raw message