diff options
author | Mathew Robinson <mathew.robinson@mongodb.com> | 2020-01-09 19:46:46 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2020-01-09 19:46:46 +0000 |
commit | af8105297aca91d64cc0f8da61aa586f8260443a (patch) | |
tree | 7fcf242a942bfe6aec77809c75989232f8f61010 /site_scons | |
parent | a1d38491572f69eb4df014311d342087c740a602 (diff) | |
download | mongo-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.py | 10 |
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) |