sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject sqoop git commit: SQOOP-2241: Sqoop2: PreCommit hook is incorrectly counting number of executed tests
Date Thu, 19 Mar 2015 23:30:15 GMT
Repository: sqoop
Updated Branches:
  refs/heads/sqoop2 865fdd108 -> 71ae5e2cd


SQOOP-2241: Sqoop2: PreCommit hook is incorrectly counting number of executed tests

(Jarek Jarcec Cecho via Abraham Elmahrek)


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

Branch: refs/heads/sqoop2
Commit: 71ae5e2cd8e66c7ca8e2fe74a91203dc4c9db7eb
Parents: 865fdd1
Author: Abraham Elmahrek <abe@apache.org>
Authored: Thu Mar 19 16:29:52 2015 -0700
Committer: Abraham Elmahrek <abe@apache.org>
Committed: Thu Mar 19 16:29:52 2015 -0700

----------------------------------------------------------------------
 dev-support/test-patch.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sqoop/blob/71ae5e2c/dev-support/test-patch.py
----------------------------------------------------------------------
diff --git a/dev-support/test-patch.py b/dev-support/test-patch.py
index e55c6eb..5336352 100755
--- a/dev-support/test-patch.py
+++ b/dev-support/test-patch.py
@@ -274,7 +274,7 @@ def run_mvn_test(command, test_type, result, output_dir, category):
   fd = open("%s/test_%s.txt" % (output_dir, test_file_name))
   for line in fd:
     if "Tests run:" in line:
-      matcher = re.search("^Tests run: ([0-9+]), Failures: ([0-9]+), Errors: ([0-9]+), Skipped:
([0-9]+), Time elapsed:", line)
+      matcher = re.search("^Tests run: ([0-9]+), Failures: ([0-9]+), Errors: ([0-9]+), Skipped:
([0-9]+), Time elapsed:", line)
       if matcher:
         executed_tests += int(matcher.group(1))
   fd.close()


Mime
View raw message