Skip to content

Commit

Permalink
fix(tests): use correct bash statement for skipping tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pbelmann committed Oct 14, 2024
1 parent 5fe3574 commit de39bb4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/createDatabaseYML.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,27 @@ yamlToTest="${9}"
yamlKey="${10}"
skipTests="${11}"

if [[ -z "$skipTests" ]] || [[ $skipTests != "extracted" ]]; then
if [[ -z "$skipTests" ]] || [[ $skipTests != *"extracted"* ]]; then
database="{extractedDBPath: ${extractedPath} }" \
yq ${yamlKey} ${yamlToTest} > ${basePath}/extractedPath.yml
fi

if [[ -z "$skipTests" ]] || [[ $skipTests != "https" ]]; then
if [[ -z "$skipTests" ]] || [[ $skipTests != *"https"* ]]; then
database="{download: {source: ${https}, md5sum: ${md5sum}} }" \
yq ${yamlKey} ${yamlToTest} > ${basePath}/https.yml
fi

if [[ -z "$skipTests" ]] || [[ $skipTests != "compressed" ]]; then
if [[ -z "$skipTests" ]] || [[ $skipTests != *"compressed"* ]]; then
database="{download: {source: ${compressedPath}, md5sum: ${md5sum}} }" \
yq ${yamlKey} ${yamlToTest} > ${basePath}/compressedPath.yml
fi

if [[ -z "$skipTests" ]] || [[ $skipTests != "s3File" ]]; then
if [[ -z "$skipTests" ]] || [[ $skipTests != *"s3File"* ]]; then
database="{download: {source: ${s3File}, md5sum: ${md5sum}, s5cmd: { params: ${s5cmdCommand} }}}" \
yq ${yamlKey} ${yamlToTest} > ${basePath}/s3File.yml
fi

if [[ -z "$skipTests" ]] || [[ $skipTests != "s3Directory" ]]; then
if [[ -z "$skipTests" ]] || [[ $skipTests != *"s3Directory"* ]]; then
database="{download: {source: ${s3Directory}, md5sum: ${md5sum}, s5cmd: { params: ${s5cmdCommand} }}}" \
yq ${yamlKey} ${yamlToTest} > ${basePath}/s3Directory.yml
fi
Expand Down

0 comments on commit de39bb4

Please sign in to comment.