Skip to content

Commit f504325

Browse files
authored
feat: bigtable emulator: Use new emulator (written in C++) for tests.
This swaps out the old emulator for the new one for tests.
1 parent 530d2ea commit f504325

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

google/cloud/bigtable/ci/run_integration_tests_emulator_cmake.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ fi
4141
CBT_INSTANCE_ADMIN_EMULATOR_START=(
4242
"${BINARY_DIR}/google/cloud/bigtable/tests/instance_admin_emulator"
4343
)
44+
45+
# Configure run_emulators_utils.sh to find the cbt emulator.
46+
CBT_EMULATOR_CMD=(
47+
"${BINARY_DIR}/google/cloud/bigtable/emulator/emulator"
48+
)
49+
4450
source module /google/cloud/bigtable/tools/run_emulator_utils.sh
4551

4652
cd "${BINARY_DIR}"

google/cloud/bigtable/tools/run_emulator_utils.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ function start_emulators() {
9292
io::log "Launching Cloud Bigtable emulators in the background"
9393
trap kill_emulators EXIT
9494

95-
local -r CBT_EMULATOR_CMD="/usr/local/google-cloud-sdk/platform/bigtable-emulator/cbtemulator"
9695
"${CBT_EMULATOR_CMD}" -port "${emulator_port}" >emulator.log 2>&1 </dev/null &
9796
EMULATOR_PID=$!
9897

0 commit comments

Comments
 (0)