diff options
author | Andrew Morrow <acm@mongodb.com> | 2018-03-22 03:32:55 -0400 |
---|---|---|
committer | Andrew Morrow <acm@mongodb.com> | 2018-03-23 15:14:36 -0400 |
commit | 82b6d9b43196760a0efbe3b06c3b5d521900d304 (patch) | |
tree | 52d5e6993fdd251632ba61c9285e5c252cbb55f3 /site_scons/site_tools/mongo_unittest.py | |
parent | 962eb29eac3b8122871a14190d43799a7963d948 (diff) | |
download | mongo-82b6d9b43196760a0efbe3b06c3b5d521900d304.tar.gz |
SERVER-34071 Apply install aliases to other binaries when in hygienic mode
Diffstat (limited to 'site_scons/site_tools/mongo_unittest.py')
-rw-r--r-- | site_scons/site_tools/mongo_unittest.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/site_scons/site_tools/mongo_unittest.py b/site_scons/site_tools/mongo_unittest.py index ec99ab2d45b..2ad0f51bfd0 100644 --- a/site_scons/site_tools/mongo_unittest.py +++ b/site_scons/site_tools/mongo_unittest.py @@ -24,10 +24,13 @@ def build_cpp_unit_test(env, target, source, **kwargs): libdeps.append( '$BUILD_DIR/mongo/unittest/unittest_main' ) kwargs['LIBDEPS'] = libdeps + kwargs['INSTALL_ALIAS'] = ['tests'] result = env.Program(target, source, **kwargs) env.RegisterUnitTest(result[0]) - env.Install("#/build/unittests/", result[0]) + hygienic = env.GetOption('install-mode') == 'hygienic' + if not hygienic: + env.Install("#/build/unittests/", result[0]) return result def generate(env): |