File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -179,8 +179,12 @@ jobs:
179179 # TODO (Caleb Aikens) figure out how to get Windows core dumps
180180 sudo mkdir -p /cores
181181 sudo chmod 777 /cores
182- # Core filenames will be of the form executable.pid.timestamp:
183- sudo bash -c 'echo "/cores/%e.%p.%t" > /proc/sys/kernel/core_pattern'
182+ # Core filenames will be of the form osname.pythonversion.executable.pid.timestamp:
183+ if [[ "$OSTYPE" == "linux-gnu"* ]]; then
184+ sudo bash -c 'echo "/cores/${OSTYPE}.$(poetry run python --version).%e.%p.%t" > /proc/sys/kernel/core_pattern'
185+ else
186+ sudo sysctl kernel.core_pattern="/cores/${OSTYPE}.$(poetry run python --version).%e.%p.%y"
187+ fi
184188 fi
185189 - name : Run Python tests (pytest)
186190 run : |
You can’t perform that action at this time.
0 commit comments