diff options
| author | Richard Samuels <richard.l.samuels@gmail.com> | 2022-04-08 13:50:25 +0000 |
|---|---|---|
| committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-04-08 14:27:40 +0000 |
| commit | 0d9705653d904bed75b06f77eba2a5e9af2b3a7d (patch) | |
| tree | 4657e027db6c13012bb71f7ceb9c689efd677682 /src/mongo/resmoke/SConscript | |
| parent | d96b46e0430d0fe4ce82264e2924df9ed505a5c6 (diff) | |
| download | mongo-0d9705653d904bed75b06f77eba2a5e9af2b3a7d.tar.gz | |
SERVER-62992 Remove need for resmoke.ini
Diffstat (limited to 'src/mongo/resmoke/SConscript')
| -rw-r--r-- | src/mongo/resmoke/SConscript | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/mongo/resmoke/SConscript b/src/mongo/resmoke/SConscript new file mode 100644 index 00000000000..fb80ab1a713 --- /dev/null +++ b/src/mongo/resmoke/SConscript @@ -0,0 +1,28 @@ +# -*- mode: python -*- +import os +import SCons +Import('env') + +env = env.Clone() + +install_dir = env.Dir('$DESTDIR/$PREFIX_BINDIR').path.replace("\\", r"\\") +resmoke_py = env.Substfile( + target="resmoke.py", + source='resmoke.py.in', + SUBST_DICT = { + '@install_dir@': install_dir, + } +) +resmoke_py_install = env.AutoInstall( + '$PREFIX_BINDIR', + source=resmoke_py, + AIB_COMPONENT='common', + AIB_ROLE='runtime', +) +# TODO SERVER-61013: We shouldn't have to setattr this once AutoInstall is a +# real builder +setattr(resmoke_py_install[0].attributes, 'AIB_NO_ARCHIVE', True) +env.AddPostAction( + resmoke_py_install, + action=SCons.Defaults.Chmod('$TARGET', "u+x"), +) |
