Skip to content

Commit 4140118

Browse files
committed
PYTHON-1261 - Test with no server running
1 parent f453d30 commit 4140118

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

.evergreen/config.yml

+15
Original file line numberDiff line numberDiff line change
@@ -699,6 +699,13 @@ tasks:
699699
TOPOLOGY: "server"
700700
- func: "run cdecimal tests"
701701

702+
- name: "no-server"
703+
tags: ["no-server"]
704+
commands:
705+
- func: "run tests"
706+
vars:
707+
PYTHON_BINARY: /opt/python/2.7/bin/python
708+
702709
# }}}
703710

704711

@@ -1343,6 +1350,14 @@ buildvariants:
13431350
tasks:
13441351
- name: "cdecimal"
13451352

1353+
- name: "no-server"
1354+
display_name: "No server test"
1355+
run_on:
1356+
- ubuntu1604-test
1357+
tasks:
1358+
- name: "no-server"
1359+
1360+
13461361
# Platform notes
13471362
# i386 builds of OpenSSL or Cyrus SASL are not available
13481363
# Ubuntu14.04 only supports 2.6+ with SSL

.evergreen/run-tests.sh

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,13 @@ set -o errexit # Exit the script with error if any of the commands fail
55
# Supported/used environment variables:
66
# AUTH Set to enable authentication. Defaults to "noauth"
77
# SSL Set to enable SSL. Defaults to "nossl"
8-
# MONGODB_URI Set the suggested connection MONGODB_URI (including credentials and topology info)
98
# PYTHON_BINARY The Python version to use. Defaults to whatever is available
109
# GREEN_FRAMEWORK The green framwork to test with, if any.
1110
# C_EXTENSIONS Pass --no_ext to setup.py, or not.
1211

1312

1413
AUTH=${AUTH:-noauth}
1514
SSL=${SSL:-nossl}
16-
MONGODB_URI=${MONGODB_URI:-}
1715
PYTHON_BINARY=${PYTHON_BINARY:-}
1816
GREEN_FRAMEWORK=${GREEN_FRAMEWORK:-}
1917
C_EXTENSIONS=${C_EXTENSIONS:-}
@@ -49,7 +47,7 @@ else
4947
OUTPUT=""
5048
fi
5149

52-
echo "Running $AUTH tests over $SSL with python $PYTHON, connecting to $MONGODB_URI"
50+
echo "Running $AUTH tests over $SSL with python $PYTHON"
5351
$PYTHON -c 'import sys; print(sys.version)'
5452

5553
# Run the tests, and store the results in Evergreen compatible XUnit XML

0 commit comments

Comments
 (0)