File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -21,13 +21,17 @@ if [ -f $SCRIPT_DIR/scripts/test-env.sh ]; then
21
21
. $SCRIPT_DIR /scripts/test-env.sh
22
22
else
23
23
echo " Missing test inputs, please run 'just setup-test'"
24
+ exit 1
24
25
fi
25
26
26
27
# Source the local secrets export file if available.
27
28
if [ -f " ./secrets-export.sh" ]; then
28
29
. " ./secrets-export.sh"
29
30
fi
30
31
32
+ # List the packages
33
+ PIP_QUIET=0 uv run ${UV_ARGS} --with pip pip list
34
+
31
35
# Start the test runner.
32
36
uv run ${UV_ARGS} .evergreen/scripts/run_tests.py
33
37
Original file line number Diff line number Diff line change 4
4
import logging
5
5
import os
6
6
import platform
7
- import shlex
8
7
import shutil
9
- import subprocess
10
8
import sys
11
9
from datetime import datetime
12
10
from pathlib import Path
62
60
LOGGER .info (f"pymongocrypt version: { pymongocrypt .__version__ } )" )
63
61
LOGGER .info (f"libmongocrypt version: { pymongocrypt .libmongocrypt_version ()} )" )
64
62
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
-
71
63
LOGGER .info (f"Test setup:\n { AUTH = } \n { SSL = } \n { UV_ARGS = } \n { TEST_ARGS = } " )
72
64
73
65
# Record the start time for a perf test.
82
74
end_time = datetime .now ()
83
75
elapsed_secs = (end_time - start_time ).total_seconds ()
84
76
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 ))
86
79
87
80
results = dict (
88
81
status = "pass" ,
You can’t perform that action at this time.
0 commit comments