From 337266b9fce5a3034f1e3164f3f02a8fe82642c0 Mon Sep 17 00:00:00 2001 From: Abraham Elmahrek Date: Mon, 2 Mar 2015 18:12:45 -0800 Subject: [PATCH] SQOOP-2158: Sqoop2: Pre-Commit hook is incorrectly counting number of executed tests (Jarek Jarcec Cecho via Abraham Elmahrek) --- dev-support/test-patch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-support/test-patch.py b/dev-support/test-patch.py index ab3161dc..b1acdc42 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()