From 73683834c341a067622bf7008ab1ca179f8a3070 Mon Sep 17 00:00:00 2001 From: Nathan Xu Date: Tue, 4 Feb 2025 16:22:53 -0500 Subject: [PATCH] make use of stop-orchestration.sh --- .evergreen/config.yml | 5 +---- .evergreen/stop-mongo-orchestration.sh | 17 ----------------- 2 files changed, 1 insertion(+), 21 deletions(-) delete mode 100755 .evergreen/stop-mongo-orchestration.sh diff --git a/.evergreen/config.yml b/.evergreen/config.yml index caa20ec9..94276eeb 100644 --- a/.evergreen/config.yml +++ b/.evergreen/config.yml @@ -60,12 +60,9 @@ functions: stop-mongo-orchestration: - command: subprocess.exec params: - working_dir: src binary: bash - include_expansions_in_env: - - MONGO_ORCHESTRATION_HOME args: - - .evergreen/stop-mongo-orchestration.sh + - ${DRIVERS_TOOLS}/.evergreen/stop-orchestration.sh upload-test-results: - command: attach.xunit_results diff --git a/.evergreen/stop-mongo-orchestration.sh b/.evergreen/stop-mongo-orchestration.sh deleted file mode 100755 index efe89f29..00000000 --- a/.evergreen/stop-mongo-orchestration.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -set -o errexit - -if [[ -z "$MONGO_ORCHESTRATION_HOME" ]]; then - echo >&2 "\$MONGO_ORCHESTRATION_HOME must be set" - exit 1 -fi - -cd ${MONGO_ORCHESTRATION_HOME} -# source the mongo-orchestration virtualenv if it exists -if [ -f venv/bin/activate ]; then - . venv/bin/activate -elif [ -f venv/Scripts/activate ]; then - . venv/Scripts/activate -fi -mongo-orchestration stop || true \ No newline at end of file