Skip to content

Commit

Permalink
Updated test helper name.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Mar 16, 2024
1 parent d6be52c commit fa01041
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .drevops/tests/bats/_helper.deployment.bash
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ assert_deployment_files_present() {
popd >/dev/null || exit 1
}

provision_site() {
install_and_build_site() {
local dir="${1:-$(pwd)}"
local should_build="${2:-1}"
shift || true
Expand Down
4 changes: 2 additions & 2 deletions .drevops/tests/bats/deployment0.bats
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ load _helper.deployment.bash
# from for deployment. They may be the same place, but we are testing them
# if they are separate, because most likely SRC_DIR will contain code
# built on previous build stages of the CI process.
provision_site "${CURRENT_PROJECT_DIR}"
install_and_build_site "${CURRENT_PROJECT_DIR}"

substep "Copying built codebase into code source directory ${SRC_DIR}."
cp -R "${CURRENT_PROJECT_DIR}/." "${SRC_DIR}/"
Expand Down Expand Up @@ -134,7 +134,7 @@ load _helper.deployment.bash
fixture_prepare_dir "${SRC_DIR}"

# Do not build - only structure.
provision_site "${CURRENT_PROJECT_DIR}" 0
install_and_build_site "${CURRENT_PROJECT_DIR}" 0

substep "Copying built codebase into code source directory ${SRC_DIR}."
cp -R "${CURRENT_PROJECT_DIR}/." "${SRC_DIR}/"
Expand Down
6 changes: 3 additions & 3 deletions .drevops/tests/bats/deployment1.bats
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ load _helper.deployment.bash
# from for deployment. They may be the same place, but we are testing them
# if they are separate, because most likely SRC_DIR will contain code
# built on previous build stages.
provision_site "${CURRENT_PROJECT_DIR}"
install_and_build_site "${CURRENT_PROJECT_DIR}"

substep "Copying built codebase into code source directory ${SRC_DIR}"
cp -R "${CURRENT_PROJECT_DIR}/." "${SRC_DIR}/"
Expand Down Expand Up @@ -146,7 +146,7 @@ load _helper.deployment.bash
)

# Do not build - only structure.
provision_site "${CURRENT_PROJECT_DIR}" 0 "${answers[@]}"
install_and_build_site "${CURRENT_PROJECT_DIR}" 0 "${answers[@]}"

substep "Copying built codebase into code source directory ${SRC_DIR}"
cp -R "${CURRENT_PROJECT_DIR}/." "${SRC_DIR}/"
Expand Down Expand Up @@ -245,7 +245,7 @@ load _helper.deployment.bash
)

# Do not build - only structure.
provision_site "${CURRENT_PROJECT_DIR}" 0 "${answers[@]}"
install_and_build_site "${CURRENT_PROJECT_DIR}" 0 "${answers[@]}"

substep "Copying built codebase into code source directory ${SRC_DIR}"
cp -R "${CURRENT_PROJECT_DIR}/." "${SRC_DIR}/"
Expand Down

0 comments on commit fa01041

Please sign in to comment.