File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -29,5 +29,5 @@ export PYTHON_BINARY=$PYTHON_VER
29
29
export SET_XTRACE_ON=1
30
30
cd src
31
31
rm -rf .venv
32
- bash ./.evergreen/just.sh setup-test auth_aws
32
+ bash ./.evergreen/just.sh setup-test auth_aws ecs
33
33
bash .evergreen/just.sh test-eg
Original file line number Diff line number Diff line change 49
49
"serverless" : "" ,
50
50
}
51
51
52
+ # Tests that require a sub test suite.
53
+ SUB_TEST_REQUIRED = ["auth_aws" , "kms" ]
54
+
52
55
# Map the test name to test extra.
53
56
EXTRAS_MAP = {
54
57
"auth_aws" : "aws" ,
@@ -124,6 +127,8 @@ def handle_test_env() -> None:
124
127
opts = get_options ()
125
128
test_name = opts .test_name
126
129
sub_test_name = opts .sub_test_name
130
+ if test_name in SUB_TEST_REQUIRED and not sub_test_name :
131
+ raise ValueError (f"Test '{ test_name } ' requires a sub_test_name" )
127
132
AUTH = os .environ .get ("AUTH" , "noauth" )
128
133
if opts .auth or "auth" in test_name :
129
134
# Only 'auth_aws ecs' shouldn't have extra auth set.
You can’t perform that action at this time.
0 commit comments