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

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


The following commit(s) were added to refs/heads/main by this push:
     new 4d72b27  (chores) ci: avoid trying to run a test if the component was 
removed
4d72b27 is described below

commit 4d72b2794355796dc9ebf9bcb1cf3d13c412780c
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Fri Apr 1 10:50:57 2022 +0200

    (chores) ci: avoid trying to run a test if the component was removed
---
 .github/actions/quick-test/quick-test.sh | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/.github/actions/quick-test/quick-test.sh 
b/.github/actions/quick-test/quick-test.sh
index 672da55..78d7fc0 100755
--- a/.github/actions/quick-test/quick-test.sh
+++ b/.github/actions/quick-test/quick-test.sh
@@ -64,8 +64,12 @@ function componentTest() {
   local total=$2
   local current=$3
 
-  cd ${basedir}/${component}
-  runTest "${component}" "${total}" "${current}"
+  if [[ -d "${basedir}/${component}" ]] ; then
+    cd "${basedir}/${component}"
+    runTest "${component}" "${total}" "${current}"
+  else
+    echo "Skipping modified entity ${basedir}/${component} because it's not a 
directory"
+  fi
 }
 
 function main() {

Reply via email to