Skip to content

Commit 489506f

Browse files
committed
fix teardown
1 parent bee26e1 commit 489506f

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.evergreen/scripts/teardown-tests.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,20 @@ pushd $ROOT_DIR > /dev/null
1010
# Try to source the env file.
1111
if [ -f $SCRIPT_DIR/scripts/env.sh ]; then
1212
echo "Sourcing env inputs"
13-
. $SCRIPT_DIR/scripts/env.sh
13+
. $SCRIPT_DIR/env.sh
1414
else
1515
echo "Not sourcing env inputs"
1616
fi
1717

1818
# Handle test inputs.
1919
if [ -f $SCRIPT_DIR/scripts/test-env.sh ]; then
2020
echo "Sourcing test inputs"
21-
. $SCRIPT_DIR/scripts/test-env.sh
21+
. $SCRIPT_DIR/test-env.sh
2222
else
2323
echo "Missing test inputs, please run 'just setup-test'"
24-
exit 1
2524
fi
2625

2726
# Start the test runner.
2827
uv run $SCRIPT_DIR/teardown_tests.py
2928

30-
popd /dev/null
29+
popd > /dev/null

.evergreen/scripts/teardown_tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
from utils import DRIVERS_TOOLS, run_command
66

7-
TEST_NAME = os.environ["TEST_NAME"]
8-
SUB_TEST_NAME = os.environ["SUB_TEST_NAME"]
7+
TEST_NAME = os.environ.get("TEST_NAME")
8+
SUB_TEST_NAME = os.environ.get("SUB_TEST_NAME")
99

1010
# Shut down csfle servers if applicable
1111
if TEST_NAME == "encryption":

0 commit comments

Comments
 (0)