File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -410,6 +410,7 @@ functions:
410
410
SSL=${SSL} \
411
411
TEST_DATA_LAKE=${TEST_DATA_LAKE} \
412
412
MONGODB_API_VERSION=${MONGODB_API_VERSION} \
413
+ SKIP_HATCH=${SKIP_HATCH} \
413
414
bash ${PROJECT_DIRECTORY}/.evergreen/hatch.sh test:test-eg
414
415
415
416
" run enterprise auth tests " :
@@ -561,7 +562,9 @@ functions:
561
562
working_dir : " src"
562
563
script : |
563
564
. .evergreen/scripts/env.sh
564
- . .evergreen/hatch.sh encryption:teardown
565
+ if [ -f $DRIVERS_TOOLS/.evergreen/csfle/secrets-export.sh ]; then
566
+ . .evergreen/hatch.sh encryption:teardown
567
+ fi
565
568
rm -rf ${DRIVERS_TOOLS} || true
566
569
rm -f ./secrets-export.sh || true
567
570
@@ -2083,10 +2086,14 @@ axes:
2083
2086
display_name : " RHEL 8.3 (zSeries)"
2084
2087
run_on : rhel83-zseries-small
2085
2088
batchtime : 10080 # 7 days
2089
+ variables :
2090
+ SKIP_HATCH : true
2086
2091
- id : rhel81-power8
2087
2092
display_name : " RHEL 8.1 (POWER8)"
2088
2093
run_on : rhel81-power8-small
2089
2094
batchtime : 10080 # 7 days
2095
+ variables :
2096
+ SKIP_HATCH : true
2090
2097
- id : rhel82-arm64
2091
2098
display_name : " RHEL 8.2 (ARM64)"
2092
2099
run_on : rhel82-arm64-small
Original file line number Diff line number Diff line change @@ -8,7 +8,17 @@ if [ -z "$PYTHON_BINARY" ]; then
8
8
PYTHON_BINARY=$( find_python3)
9
9
fi
10
10
11
- if $PYTHON_BINARY -m hatch --version; then
11
+ # Check if we should skip hatch and run the tests directly.
12
+ if [ -n " $SKIP_HATCH " ]; then
13
+ ENV_NAME=testenv-$RANDOM
14
+ createvirtualenv " $PYTHON_BINARY " $ENV_NAME
15
+ # shellcheck disable=SC2064
16
+ trap " deactivate; rm -rf $ENV_NAME " EXIT HUP
17
+ python -m pip install -e " .[test]"
18
+ run_hatch () {
19
+ bash ./.evergreen/run-tests.sh
20
+ }
21
+ elif $PYTHON_BINARY -m hatch --version; then
12
22
run_hatch () {
13
23
$PYTHON_BINARY -m hatch run " $@ "
14
24
}
You can’t perform that action at this time.
0 commit comments