summaryrefslogtreecommitdiff
path: root/buildscripts
diff options
context:
space:
mode:
authorRyan Egesdahl <ryan.egesdahl@mongodb.com>2022-03-11 01:04:23 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-03-28 18:37:58 +0000
commitbeb51a7c2e7dc26f31f870e59bd5b9e839392fa1 (patch)
tree33f94bde96f7d28240fca6e1fefa5761b6e5abed /buildscripts
parent6da1c8ecb87cbf421054a1b426c14d36481df27f (diff)
downloadmongo-beb51a7c2e7dc26f31f870e59bd5b9e839392fa1.tar.gz
SERVER-61032 Remove `PATH` variables when executing GDB
(cherry picked from commit 736a3ebe7241a0fbec8734d66b75e74697ce42a5)
Diffstat (limited to 'buildscripts')
-rw-r--r--buildscripts/resmokelib/powercycle/remote_hang_analyzer/__init__.py2
-rwxr-xr-xbuildscripts/setup_spawnhost_coredump3
2 files changed, 2 insertions, 3 deletions
diff --git a/buildscripts/resmokelib/powercycle/remote_hang_analyzer/__init__.py b/buildscripts/resmokelib/powercycle/remote_hang_analyzer/__init__.py
index a742aace0d3..f83464db90b 100644
--- a/buildscripts/resmokelib/powercycle/remote_hang_analyzer/__init__.py
+++ b/buildscripts/resmokelib/powercycle/remote_hang_analyzer/__init__.py
@@ -48,7 +48,7 @@ class RunHangAnalyzerOnRemoteInstance(PowercycleCommand):
# we don't want to evaluate the local python variable, but instead pass the python string
# so the remote host will use the right python when the virtualenv is sourced.
cmds = f"{cmds}; cd {remote_dir}"
- cmds = f"{cmds}; PATH=\"$PATH:/opt/mongodbtoolchain/v3/bin\" python buildscripts/resmoke.py hang-analyzer {hang_analyzer_option}"
+ cmds = f"{cmds}; python buildscripts/resmoke.py hang-analyzer {hang_analyzer_option}"
self.remote_op.operation(SSHOperation.SHELL, cmds, None)
file_param = []
diff --git a/buildscripts/setup_spawnhost_coredump b/buildscripts/setup_spawnhost_coredump
index 354c4539b71..e8f7a34271b 100755
--- a/buildscripts/setup_spawnhost_coredump
+++ b/buildscripts/setup_spawnhost_coredump
@@ -14,7 +14,7 @@ cat >> ~/.profile <<EOF
cat ~/.setup_spawnhost_coredump_progress
# Coredumps generated by a toolchain built mongodb can be problematic when examined with the system
# gdb.
-export PATH=$PATH:/opt/mongodbtoolchain/v3/bin
+alias gdb='/opt/mongodbtoolchain/v3/bin/gdb'
# As per below, put the user into the appropriate directory. This is where gdb is expected to be
# invoked from.
cd debug
@@ -33,7 +33,6 @@ echo "To examine a core dump, type 'gdb ./<binary> ./<core file>'"
cat ~/.setup_spawnhost_coredump_progress
EOF
-export PATH=$PATH:/opt/mongodbtoolchain/v3/bin
echo 'if [ -f ~/.profile ]; then
. ~/.profile
fi' >> .bash_profile