summaryrefslogtreecommitdiff
path: root/site_scons
diff options
context:
space:
mode:
authorMathew Robinson <mathew.robinson@mongodb.com>2020-01-09 19:46:46 +0000
committerevergreen <evergreen@mongodb.com>2020-01-09 19:46:46 +0000
commitaf8105297aca91d64cc0f8da61aa586f8260443a (patch)
tree7fcf242a942bfe6aec77809c75989232f8f61010 /site_scons
parenta1d38491572f69eb4df014311d342087c740a602 (diff)
downloadmongo-af8105297aca91d64cc0f8da61aa586f8260443a.tar.gz
SERVER-44947 Make test lists depend on the tests
Diffstat (limited to 'site_scons')
-rw-r--r--site_scons/site_tools/mongo_test_list.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/site_scons/site_tools/mongo_test_list.py b/site_scons/site_tools/mongo_test_list.py
index 8ea4a427354..c959c6eedc2 100644
--- a/site_scons/site_tools/mongo_test_list.py
+++ b/site_scons/site_tools/mongo_test_list.py
@@ -19,17 +19,17 @@ from collections import defaultdict
TEST_REGISTRY = defaultdict(list)
-def register_test(env, file_name, test):
+def register_test(env, file, test):
"""Register test into the dictionary of tests for file_name"""
test_path = test.path
if getattr(test.attributes, "AIB_INSTALL_ACTIONS", []):
test_path = getattr(test.attributes, "AIB_INSTALL_ACTIONS")[0].path
- if SCons.Util.is_String(file_name):
- file_name = env.File(file_name).path
- else:
- file_name = file_name.path
+ if SCons.Util.is_String(file):
+ file = env.File(file)
+ env.Depends(file, test)
+ file_name = file.path
TEST_REGISTRY[file_name].append(test_path)
env.GenerateTestExecutionAliases(test)