Skip to content

Commit aa557cb

Browse files
committed
ci(linux): set core pattern in test workflow
1 parent a95aa28 commit aa557cb

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/tests.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ jobs:
117117
- name: Set core dump file pattern
118118
run: |
119119
echo "core.%p" | sudo tee /proc/sys/kernel/core_pattern
120-
120+
121121
ulimit -c unlimited
122122
python3.10 -c "import ctypes;ctypes.string_at(0)" || true
123123
ls core.*
@@ -126,48 +126,56 @@ jobs:
126126
- name: Run unit tests
127127
run: |
128128
ulimit -c unlimited
129+
echo "core.%p" | sudo tee /proc/sys/kernel/core_pattern
129130
.venv/bin/pytest -sv test/cunit
130131
131132
- name: Run functional Austin tests (with sudo)
132133
run: |
133134
ulimit -c unlimited
135+
echo "core.%p" | sudo tee /proc/sys/kernel/core_pattern
134136
sudo -E env PATH="$PATH" .venv/bin/pytest --pastebin=failed -svr a test/functional -k "not austinp"
135137
if: always()
136138

137139
- name: Run functional Austin tests (without sudo)
138140
run: |
139141
ulimit -c unlimited
142+
echo "core.%p" | sudo tee /proc/sys/kernel/core_pattern
140143
.venv/bin/pytest --pastebin=failed -svr a test/functional -k "not austinp"
141144
if: always()
142145

143146
- name: Run functional austinp tests (with sudo)
144147
run: |
145148
ulimit -c unlimited
149+
echo "core.%p" | sudo tee /proc/sys/kernel/core_pattern
146150
sudo -E env PATH="$PATH" .venv/bin/pytest --pastebin=failed -svr a test/functional -k "austinp"
147151
if: always()
148152

149153
- name: Run functional austinp tests (without sudo)
150154
run: |
151155
ulimit -c unlimited
156+
echo "core.%p" | sudo tee /proc/sys/kernel/core_pattern
152157
.venv/bin/pytest --pastebin=failed -svr a test/functional -k "austinp"
153158
if: always()
154159

155160
- name: Run integrity tests (with sudo)
156161
run: |
157162
ulimit -c unlimited
163+
echo "core.%p" | sudo tee /proc/sys/kernel/core_pattern
158164
sudo -E env PATH="$PATH" .venv/bin/pytest --pastebin=failed -svr a test/integrity
159165
if: always()
160166

161167
- name: Run integrity tests (without sudo)
162168
run: |
163169
ulimit -c unlimited
170+
echo "core.%p" | sudo tee /proc/sys/kernel/core_pattern
164171
.venv/bin/pytest --pastebin=failed -svr a test/integrity
165172
if: always()
166173

167174
- name: Run support tests
168175
run: |
169176
ulimit -c unlimited
170-
.venv/bin/pytest -sv test/support
177+
echo "core.%p" | sudo tee /proc/sys/kernel/core_pattern
178+
sudo -E env PATH="$PATH" .venv/bin/pytest -sv test/support
171179
if: always()
172180

173181
wheels-linux:

0 commit comments

Comments
 (0)