SERVER-102927 [v8.1] Skip pdb copy step in unit test gather script if binary is not an exe (#34144) (#34170)

GitOrigin-RevId: e50191f4ac5ff64806eaa21147bd92ec9f81fc90
This commit is contained in:
Zack Winter 2025-07-22 20:57:38 -07:00 committed by MongoDB Bot
parent 5862028715
commit f62cf87e50
1 changed files with 7 additions and 5 deletions

View File

@ -52,12 +52,14 @@ while read -r core_file; do
fi
# On Windows if a .pdb symbol file exists, include it in the archive.
if [[ "$binary_file_location" == *".exe" ]]; then
pdb_file=$(echo "$binary_file_location" | sed "s/\.exe/.pdb/")
if [ -f "$pdb_file" ]; then
new_pdb_file=$unittest_bin_dir/$(echo "$pdb_file" | sed "s/.*\///")
echo "PDB Copy $pdb_file to $new_pdb_file"
cp "$pdb_file" "$new_pdb_file"
fi
fi
# On binutils platforms, if a .debug symbol file exists, include it
# in the archive