From 20abf7e1873813a1190377933aad0f8e57a3bea1 Mon Sep 17 00:00:00 2001 From: Jonathan Abrahams Date: Fri, 9 Jun 2017 09:52:43 -0400 Subject: SERVER-28596 Handle cases when binary is invoked with options for the unittest (cherry picked from commit ff952170b92c0d3a0c9e4d3387478b70d4340d9c) --- etc/evergreen.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/evergreen.yml b/etc/evergreen.yml index 3d450777b9e..3082651ee1c 100644 --- a/etc/evergreen.yml +++ b/etc/evergreen.yml @@ -1106,7 +1106,7 @@ post: # On platforms with GDB, we get the binary name from core file gdb=/opt/mongodbtoolchain/gdb/bin/gdb if [ -f $gdb ]; then - binary_file=$($gdb -batch --quiet -ex "core $core_file" 2> /dev/null | grep "Core was generated" | cut -f2 -d "\`" | cut -f1 -d "'") + binary_file=$($gdb -batch --quiet -ex "core $core_file" 2> /dev/null | grep "Core was generated" | cut -f2 -d "\`" | cut -f1 -d "'" | cut -f1 -d " ") binary_file_locations=$binary_file else # Find the base file name from the core file name, note it may be truncated. -- cgit v1.2.1