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-2158: Sqoop2: Pre-Commit hook is incorrectly counting number of executed tests
Date Tue, 03 Mar 2015 02:13:34 GMT
Repository: sqoop
Updated Branches:
  refs/heads/sqoop2 a375d462d -> 337266b9f


SQOOP-2158: Sqoop2: Pre-Commit 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/337266b9
Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/337266b9
Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/337266b9

Branch: refs/heads/sqoop2
Commit: 337266b9fce5a3034f1e3164f3f02a8fe82642c0
Parents: a375d46
Author: Abraham Elmahrek <abe@apache.org>
Authored: Mon Mar 2 18:12:45 2015 -0800
Committer: Abraham Elmahrek <abe@apache.org>
Committed: Mon Mar 2 18:12:45 2015 -0800

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


http://git-wip-us.apache.org/repos/asf/sqoop/blob/337266b9/dev-support/test-patch.py
----------------------------------------------------------------------
diff --git a/dev-support/test-patch.py b/dev-support/test-patch.py
index ab3161d..b1acdc4 100755
--- a/dev-support/test-patch.py
+++ b/dev-support/test-patch.py
@@ -278,7 +278,7 @@ def run_mvn_test(command, test_type, result, output_dir, slow):
   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