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

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


The following commit(s) were added to refs/heads/main by this push:
     new 46e33bf  Fix bash syntax error in CI integration tests step
46e33bf is described below

commit 46e33bf46e2c63a29b0506b834071fc89d0370d4
Author: James Netherton <[email protected]>
AuthorDate: Wed Dec 1 08:08:10 2021 +0000

    Fix bash syntax error in CI integration tests step
---
 .github/workflows/ci-build.yaml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/ci-build.yaml b/.github/workflows/ci-build.yaml
index aa30015..8f814d2 100644
--- a/.github/workflows/ci-build.yaml
+++ b/.github/workflows/ci-build.yaml
@@ -159,17 +159,17 @@ jobs:
       - name: Integration Tests
         run: |
           for MODULE in $(cat tooling/scripts/test-categories.yaml | yq r - 
"${{ matrix.category }}.*"); do
-            if [ "${MODULE}" == "-" ]; then
+            if [[ "${MODULE}" == "-" ]]; then
               continue
             fi
             MODULE="integration-tests/$(echo ${MODULE} | sed 's/^[ \t]*//;s/[ 
\t]*$//')"
-            if [ "x$(mvn 
org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate 
-Dexpression=ci.native.tests.skip -DforceStdout -q -f ${MODULE})" == "xtrue" ]; 
then
+            if [[ "x$(mvn 
org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate 
-Dexpression=ci.native.tests.skip -DforceStdout -q -f ${MODULE})" == "xtrue" 
]]; then
               JVM_MODULES+=("${MODULE}")
             else
               NATIVE_MODULES+=("${MODULE}")
             fi
           done
-          if [ ${#JVM_MODULES[@]} -eq 0 && ${#NATIVE_MODULES[@]} -eq 0 ]; then
+          if [[ ${#JVM_MODULES[@]} -eq 0 ]] && [[ ${#NATIVE_MODULES[@]} -eq 0 
]]; then
             echo "No test modules were found for category ${{ matrix.category 
}}"
             exit 1
           fi

Reply via email to