INNER CODE UNIT · Java

existing

spring-cloud/spring-cloud-kubernetes · .github/workflows/composites/scripts/run-tests-with-retry.sh:107

  existing=$(find . -type f \
                  \( -path '*surefire-reports*' -o -path '*failsafe-reports*' \) \
                  -name '*.txt' ! -name '*-output.txt' \
               | sed -e 's|.*/||' -e 's|\.txt$||' \
               | sort -u)

  IFS=',' read -r -a requested_array <<< "${requested}"
  for test in "${requested_array[@]}"; do
    if ! grep -Fxq "${test}" <<< "${existing}"; then
      missing+=("${test}")
    fi
  done

  ( IFS=','; echo "${missing[*]}" )
}

# Joins the non-empty arguments with commas, so an empty failed set or an empty never-ran
# set does not produce a leading or doubled comma in '-DtestsToRun'.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…