Skip to content

Commit 7a5b554

Browse files
committed
cleanup
1 parent c111790 commit 7a5b554

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

.evergreen/run-tests.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,17 @@ if [ -f $SCRIPT_DIR/scripts/test-env.sh ]; then
2121
. $SCRIPT_DIR/scripts/test-env.sh
2222
else
2323
echo "Missing test inputs, please run 'just setup-test'"
24+
exit 1
2425
fi
2526

2627
# Source the local secrets export file if available.
2728
if [ -f "./secrets-export.sh" ]; then
2829
. "./secrets-export.sh"
2930
fi
3031

32+
# List the packages
33+
PIP_QUIET=0 uv run ${UV_ARGS} --with pip pip list
34+
3135
# Start the test runner.
3236
uv run ${UV_ARGS} .evergreen/scripts/run_tests.py
3337

.evergreen/scripts/run_tests.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
import logging
55
import os
66
import platform
7-
import shlex
87
import shutil
9-
import subprocess
108
import sys
119
from datetime import datetime
1210
from pathlib import Path
@@ -62,12 +60,6 @@
6260
LOGGER.info(f"pymongocrypt version: {pymongocrypt.__version__})")
6361
LOGGER.info(f"libmongocrypt version: {pymongocrypt.libmongocrypt_version()})")
6462

65-
# Show the installed packages. Pip can only be run as a cli.
66-
env = os.environ.copy()
67-
env["PIP_QUIET"] = "0"
68-
LOGGER.info("Installed packages:")
69-
subprocess.run(shlex.split(f"uv run {UV_ARGS} --with pip pip list"), env=env, check=True) # noqa: S603
70-
7163
LOGGER.info(f"Test setup:\n{AUTH=}\n{SSL=}\n{UV_ARGS=}\n{TEST_ARGS=}")
7264

7365
# Record the start time for a perf test.
@@ -82,7 +74,8 @@
8274
end_time = datetime.now()
8375
elapsed_secs = (end_time - start_time).total_seconds()
8476
with open("results.json") as fid:
85-
LOGGER.info("results.json:\n%s", json.dump(fid, indent=2))
77+
results = json.load(fid)
78+
LOGGER.info("results.json:\n%s", json.dumps(results, indent=2))
8679

8780
results = dict(
8881
status="pass",

0 commit comments

Comments
 (0)