sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jar...@apache.org
Subject git commit: Adding more status messages
Date Sun, 16 Jun 2013 20:07:21 GMT
Updated Branches:
  refs/heads/SQOOP-1082 a256cfcba -> 1b1bbfd96


Adding more status messages


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

Branch: refs/heads/SQOOP-1082
Commit: 1b1bbfd96a8ffa387b7ff111565cf451076d44a1
Parents: a256cfc
Author: Jarek Jarcec Cecho <jarcec@apache.org>
Authored: Sun Jun 16 13:06:56 2013 -0700
Committer: Jarek Jarcec Cecho <jarcec@apache.org>
Committed: Sun Jun 16 13:06:56 2013 -0700

----------------------------------------------------------------------
 dev-support/test-patch.py | 23 ++++++++++++++---------
 1 file changed, 14 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sqoop/blob/1b1bbfd9/dev-support/test-patch.py
----------------------------------------------------------------------
diff --git a/dev-support/test-patch.py b/dev-support/test-patch.py
index 4e7f05c..4c9b611 100755
--- a/dev-support/test-patch.py
+++ b/dev-support/test-patch.py
@@ -183,6 +183,7 @@ def git_apply(result, cmd, patch_file, strip, output_dir):
     with open(output_file) as fh:
       output = fh.read()
   if rc == 0:
+    result.success("Patch applied correctly")
     if output:
       print output
   else:
@@ -190,12 +191,16 @@ def git_apply(result, cmd, patch_file, strip, output_dir):
 
 def mvn_clean(result, output_dir):
   rc = execute("mvn clean 1>%s/clean.txt 2>&1" % output_dir)
-  if rc != 0:
+  if rc == 0:
+    result.success("Clean was successful")
+  else:
     result.fatal("failed to clean project (exit code %d)" % (rc))
 
 def mvn_install(result, output_dir):
   rc = execute("mvn install -DskipTests 1>%s/install.txt 2>&1" % output_dir)
-  if rc != 0:
+  if rc == 0:
+    result.success("Patch compiled")
+  else:
     result.fatal("failed to build with patch (exit code %d)" % (rc))
 
 def find_all_files(top):
@@ -206,7 +211,7 @@ def find_all_files(top):
 def mvn_test(result, output_dir):
   rc = execute("mvn test 1>%s/test.txt 2>&1" % output_dir)
   if rc == 0:
-    result.success("all tests passed")
+    result.success("All tests passed")
   else:
     result.error("mvn test exited %d" % (rc))
     failed_tests = []
@@ -384,11 +389,11 @@ if not sqoop_verify_branch(branch):
 
 mvn_clean(result, output_dir)
 git_checkout(result, branch)
-#git_apply(result, patch_cmd, patch_file, strip, output_dir)
-#mvn_install(result, output_dir)
-#if run_tests:
-#  mvn_test(result, output_dir)
-#else:
-#  result.info("patch applied and built but tests did not execute")
+git_apply(result, patch_cmd, patch_file, strip, output_dir)
+mvn_install(result, output_dir)
+if run_tests:
+  mvn_test(result, output_dir)
+else:
+  result.info("patch applied and built but tests did not execute")
 
 result.exit_handler()


Mime
View raw message