summaryrefslogtreecommitdiff
path: root/site_scons
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2020-04-28 14:25:40 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-04-29 13:17:45 +0000
commit8cada05bf78b152f159da4e316a54698724ab6d0 (patch)
tree9253d0762ea9750c71308792031bb0d8e877e3c1 /site_scons
parentef57b6e4aff21564bebdc6dcd38983eebbb3f8fe (diff)
downloadmongo-8cada05bf78b152f159da4e316a54698724ab6d0.tar.gz
SERVER-47818 Repair test execution aliases in hygienic mode
(cherry picked from commit 0b50b48a2baad106f822fd01674c5617a0ed3444)
Diffstat (limited to 'site_scons')
-rw-r--r--site_scons/site_tools/mongo_test_execution.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/site_scons/site_tools/mongo_test_execution.py b/site_scons/site_tools/mongo_test_execution.py
index 7d9bc6a1a3f..3ccb51bdb49 100644
--- a/site_scons/site_tools/mongo_test_execution.py
+++ b/site_scons/site_tools/mongo_test_execution.py
@@ -16,11 +16,10 @@ import os
def generate_test_execution_aliases(env, test):
- hygienic = env.GetOption("install-mode") == "hygienic"
- if hygienic and getattr(test.attributes, "AIB_INSTALL_ACTIONS", []):
- installed = getattr(test.attributes, "AIB_INSTALL_ACTIONS")
- else:
- installed = [test]
+
+ installed = [test]
+ if env.get("AUTO_INSTALL_ENABLED", False) and env.GetAutoInstalledFiles(test):
+ installed = env.GetAutoInstalledFiles(test)
target_name = os.path.basename(installed[0].get_path())
command = env.Command(