This is an automated email from the ASF dual-hosted git repository.

aajisaka pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/yetus.git


The following commit(s) were added to refs/heads/main by this push:
     new f9ba017  YETUS-1106. Detect CMake test changes (#215)
f9ba017 is described below

commit f9ba0170a5787a5f4662d3769804fef0226a182f
Author: Gautham B A <[email protected]>
AuthorDate: Wed Apr 7 10:50:09 2021 +0530

    YETUS-1106. Detect CMake test changes (#215)
    
    Signed-off-by: Akira Ajisaka <[email protected]>
---
 precommit/src/main/shell/plugins.d/test4tests.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/precommit/src/main/shell/plugins.d/test4tests.sh 
b/precommit/src/main/shell/plugins.d/test4tests.sh
index 06b860c..16b351c 100755
--- a/precommit/src/main/shell/plugins.d/test4tests.sh
+++ b/precommit/src/main/shell/plugins.d/test4tests.sh
@@ -41,7 +41,7 @@ function test4tests_patchfile
   start_clock
 
   for i in "${CHANGED_FILES[@]}"; do
-    if [[ ${i} =~ (^|/)test/ ]]; then
+    if [[ ${i} =~ (^|/)tests?/ ]]; then
       ((testReferences=testReferences + 1))
     fi
   done

Reply via email to