Skip to content

Commit

Permalink
Add sleep before looking for dump (dotnet#39217)
Browse files Browse the repository at this point in the history
* Add sleep before looking for dump

* Enable helix only

* typo
  • Loading branch information
danmoseley authored Jul 14, 2020
1 parent a9a98af commit 74be072
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion eng/testing/RunnerTemplate.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,14 @@ fi
# ======================= BEGIN Core File Inspection =========================
pushd $EXECUTION_DIR >/dev/null
if [[ "$(uname -s)" == "Linux" && $test_exitcode -ne 0 ]]; then
echo Looking around for any Linux dump...
if [ -n "$HELIX_WORKITEM_PAYLOAD" ]; then
have_sleep=$(which sleep)
if [ -x "$have_sleep" ]; then
echo Waiting a few seconds for any dump to be written..
sleep 10s
fi
fi
echo Looking around for any Linux dump..
# Depending on distro/configuration, the core files may either be named "core"
# or "core.<PID>" by default. We read /proc/sys/kernel/core_uses_pid to
# determine which it is.
Expand Down

0 comments on commit 74be072

Please sign in to comment.