diff options
-rw-r--r-- | site_scons/site_tools/mongo_test_execution.py | 9 |
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( |